package security.workspace;

import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.servlet.*;
import java.io.*;
import include.right.*;
import include.tree_index.Nseer;
import include.tree_index.businessComment;
import include.nseer_db.*;
import include.nseer_cookie.*;

public class index extends HttpServlet {

    public synchronized void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        HttpSession dbSession = request.getSession();
        JspFactory _jspxFactory = JspFactory.getDefaultFactory();
        PageContext pageContext = _jspxFactory.getPageContext(this, request, response, "", true, 8192, true);
        ServletContext application = dbSession.getServletContext();
        HttpSession session = request.getSession();
        PrintWriter out = response.getWriter();
        try {
            nseer_db security_db = new nseer_db((String) session.getAttribute("unit_db_name"));
            businessComment demo = new businessComment();
            businessComment mdemo = new businessComment();
            businessComment ademo = new businessComment();
            demo.setPath(request);
            mdemo.setPath(request);
            ademo.setPath(request);
            out.write("<script type='text/javascript' src='javascript/include/div/divViewChange.js'></script>\r\n");
            out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/include/nseer_cookie/xml-css.css\"/>\r\n");
            BrowerVer browercheck = new BrowerVer();
            if (session.getAttribute("human_IDD") == null) {
                response.sendRedirect("home/login.jsp");
            }
            String human_ID = (String) session.getAttribute("human_IDD");
            String strhead = request.getHeader("User-Agent");
            if (strhead.indexOf(browercheck.IE) != -1) {
                double ver = Double.parseDouble(strhead.substring(strhead.indexOf("MSIE ") + 5, strhead.indexOf(";", strhead.indexOf("MSIE "))));
                if (ver < browercheck.IEVer) {
                    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/alarm.html");
                    dispatcher.include(request, response);
                }
            }
            String task = "";
            String sql = "select * from security_config_public_char where kind='task'";
            ResultSet rs = security_db.executeQuery(sql);
            if (rs.next()) {
                task = rs.getString("type_name");
            }
            out.write("\r\n");
            out.write("<html>\r\n");
            out.write("<title>");
            out.print(demo.getLang("erp", "欢迎使用恩信科技开源ERP"));
            out.write("</title>\r\n");
            out.write("<head>\r\n");
            out.write("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"security/workspace/menu.css\">\r\n");
            out.write("<style>\r\n");
            out.write("#testDiv     { position: absolute; height: 70px; \r\n");
            out.write("               right: 0px; bottom: 0px; width: 250; z-index: 5; \r\n");
            out.write("               border: 0px outset white; margin: 0px; padding: 2px;\r\n");
            out.write("\t\t\t   overflow: hidden;\r\n");
            out.write("              }\r\n");
            out.write("</style>\r\n");
            out.write("<style> \r\n");
            out.write("body {\r\n");
            out.write("\t\r\n");
            out.write("\tbackground-image: url(images/top.jpg);\r\n");
            out.write("  }\r\n");
            out.write(".dragAble {position:relative;cursor:hand;}\r\n");
            out.write("A:visited {\r\n");
            out.write("\tTEXT-DECORATION: none\r\n");
            out.write("}\r\n");
            out.write("A:active {\r\n");
            out.write("\tTEXT-DECORATION: none\r\n");
            out.write("}\r\n");
            out.write("A:hover {\r\n");
            out.write("\tTEXT-DECORATION: none\r\n");
            out.write("}\r\n");
            out.write("A:link {\r\n");
            out.write("\tTEXT-DECORATION: none\r\n");
            out.write("}\r\n");
            out.write("</style>\r\n");
            out.write("<style>\r\n");
            out.write(".drag_text{\r\n");
            out.write("position:relative;\r\n");
            out.write("z-index:-1 ;\r\n");
            out.write("top:10px;\r\n");
            out.write("left:22px;\r\n");
            out.write("width:60px;\r\n");
            out.write("font-size : 9pt;\r\n");
            out.write("display:block;\r\n");
            out.write("padding:2px 5px 2px 0.5em;\r\n");
            out.write("color: #ffffff;\r\n");
            out.write("text-decoration: none;\r\n");
            out.write("white-space:nowrap;     \r\n");
            out.write("text-overflow:ellipsis;\r\n");
            out.write("overflow: hidden;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write(".drag_text2{\r\n");
            out.write("position:relative;\r\n");
            out.write("z-index:-1 ;\r\n");
            out.write("top:10px;\r\n");
            out.write("left:22px;\r\n");
            out.write("width:55px;\r\n");
            out.write("font-size : 9pt;\r\n");
            out.write("display:block;\r\n");
            out.write("padding:2px 5px 2px 0.5em;\r\n");
            out.write("color: #000000;\r\n");
            out.write("text-decoration: none;\r\n");
            out.write("white-space:nowrap;     \r\n");
            out.write("text-overflow:ellipsis;\r\n");
            out.write("overflow: hidden;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write(".drag_text1{\r\n");
            out.write("position:relative;\r\n");
            out.write("z-index:-1 ;\r\n");
            out.write("top:10px;\r\n");
            out.write("left:0px;\r\n");
            out.write("width:110px;\r\n");
            out.write("font-size : 9pt;\r\n");
            out.write("display:block;\r\n");
            out.write("padding:2px 5px 2px 0.5em;\r\n");
            out.write("border-left: 0px ;\r\n");
            out.write("border-right: 0px ;\r\n");
            out.write("background-color: #99FF33;\r\n");
            out.write("color: #000000;\r\n");
            out.write("text-decoration: none;\r\n");
            out.write("text-align: center;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write(".del_drag_text{\r\n");
            out.write("z-index:-1 ;\r\n");
            out.write("width:80px;\r\n");
            out.write("font-size : 9pt;\r\n");
            out.write("display:block;\r\n");
            out.write("padding:2px 5px 2px 0.5em;\r\n");
            out.write("border-left: 0px ;\r\n");
            out.write("border-right: 0px ;\r\n");
            out.write("background-color: #33FFCC;\r\n");
            out.write("color: #000000;\r\n");
            out.write("text-decoration: none;\r\n");
            out.write("text-align: center;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("</style>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<style> \r\n");
            out.write(".dragAble1 {position:relative;cursor:nw-resize;} \r\n");
            out.write("</style> \r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<script language=\"javascript\">\r\n");
            out.write("var group_id='';\r\n");
            out.write("</script>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<script>\r\n");
            out.write("var div_tag=0;\r\n");
            out.write("window.setInterval(\"session1()\",3000);\r\n");
            out.write("\r\n");
            out.write("function session1(){\r\n");
            out.write("var xmlhttp2;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp2=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp2=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp2) {\r\n");
            out.write("\t\t\txmlhttp2.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp2.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp2.status==200) {\r\n");
            out.write("var text1='';\r\n");
            out.write("text1=xmlhttp2.responseText;\r\n");
            out.write("text1=parseInt(text1)+'';\r\n");
            out.write("\r\n");
            out.write("var task1=document.getElementById(\"taskDiv1\");\r\n");
            out.write("var task11=document.getElementById(\"taskDiv\");\r\n");
            out.write("var task111=document.getElementById(\"task_recover\");\r\n");
            out.write("var bbs1=document.getElementById(\"bbs1\");\r\n");
            out.write("var bbs11=document.getElementById(\"bbs\");\r\n");
            out.write("var bbs111=document.getElementById(\"bbs_recover\");\r\n");
            out.write("if(parseInt(text1.substring(0,3))==321&&parseInt(text1.substring(6,9))==456){\r\n");
            out.write("\ttask111.innerHTML='<div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "点击查看我的任务"));
            out.write("</font></div>';\r\n");
            out.write("\ttask1.style.display='block';\r\n");
            out.write("\ttask11.style.display='none';\r\n");
            out.write("}\r\n");
            out.write("if(parseInt(text1.substring(0,3))==123&&parseInt(text1.substring(6,9))==456)\r\n");
            out.write("{\r\n");
            out.write("\t\ttask111.innerHTML='<div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "当前没有任务"));
            out.write("</font></div>';\r\n");
            out.write("\t\ttask1.style.display='none';\r\n");
            out.write("\t\ttask11.style.display='block';\r\n");
            out.write("\t\tdocument.getElementById(\"testDiv\").style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("if(parseInt(text1.substring(6,9))==654)\r\n");
            out.write("{\r\n");
            out.write("\t\ttask1.style.display='none';\r\n");
            out.write("\t\ttask11.style.display='none';\r\n");
            out.write("\t\tdocument.getElementById(\"testDiv\").style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("if(parseInt(text1.substring(3,6))==789){\r\n");
            out.write("\tbbs1.style.display='block';\r\n");
            out.write("\tbbs11.style.display='none';\r\n");
            out.write("\tbbs111.innerHTML='<div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "点击查看公告"));
            out.write("</font></div>';\r\n");
            out.write("}\r\n");
            out.write("if(parseInt(text1.substring(3,6))==987)\r\n");
            out.write("{\r\n");
            out.write("\t\tbbs111.innerHTML='<div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "当前没有公告"));
            out.write("</font></div>';\r\n");
            out.write("\t\tbbs1.style.display='none';\r\n");
            out.write("\t\tbbs11.style.display='block';\r\n");
            out.write("\t}\r\n");
            out.write("}else {\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\r\n");
            out.write("\t\t\t\t\t\talert(exception);\r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp2.open(\"POST\", \"security/workspace/session.jsp\", true);\r\n");
            out.write("\t\txmlhttp2.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n");
            out.write("\t\txmlhttp2.send('');\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function task_display(){\r\n");
            out.write("\tvar task_dis=document.getElementById(\"testDiv\");\r\n");
            out.write("\ttask_dis.style.display='block';\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("<script language=\"javascript\">\r\n");
            out.write("var new_top;\r\n");
            out.write("\r\n");
            out.write("var new_left;\r\n");
            out.write("\r\n");
            out.write("var new_width;\r\n");
            out.write("\r\n");
            out.write("var new_height;\r\n");
            out.write("\r\n");
            out.write("var field_tag=0;\r\n");
            out.write("\r\n");
            out.write("var field_x;\r\n");
            out.write("\r\n");
            out.write("var field_o;\r\n");
            out.write("\r\n");
            out.write("var field_y;\r\n");
            out.write("\r\n");
            out.write("var field_p=1;\r\n");
            out.write("var t=1;\r\n");
            out.write("var div_img_id;\r\n");
            out.write("var divId;\r\n");
            out.write("var args;\r\n");
            out.write("function del_div(divId){\r\n");
            out.write("close_run();\r\n");
            out.write("this.divId=divId;\r\n");
            out.write("if(t!=1&&divv_img!=2){\r\n");
            out.write("group_id=group_id.substring(0,group_id.length-1);\t\r\n");
            out.write("args = group_id.split(\",\");\r\n");
            out.write(" for(var i = 0; i < args.length; i ++){\r\n");
            out.write("div_img_id=args[i];\r\n");
            out.write("var img_div_id=document.getElementById(div_img_id+'TTT');\r\n");
            out.write("if(img_div_id!=null){\r\n");
            out.write("\r\n");
            out.write("img_div_id.className=null;\r\n");
            out.write("}\r\n");
            out.write("var href_div_id=document.getElementById(div_img_id+'TTTT');\r\n");
            out.write("\r\n");
            out.write("if(href_div_id!=null){\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("{\r\n");
            out.write("href_div_id.className='drag_text2';\r\n");
            out.write("}else if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("href_div_id.onmouseover=function (){\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text1';\r\n");
            out.write("\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("href_div_id.onmouseout=function (){\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("href_div_id.className='drag_text2';\r\n");
            out.write("\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("href_div_id.className='drag_text';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("group_id='';\r\n");
            out.write("}\r\n");
            out.write("div_img_id=divId.id;\r\n");
            out.write("if(divv_img==2){\r\n");
            out.write("group_id=group_id+div_img_id+',';\r\n");
            out.write("}else{\r\n");
            out.write("\tgroup_id=div_img_id+',';\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("var img_div=document.getElementById(divId.id+'TTT');\r\n");
            out.write("\r\n");
            out.write("var href_div=document.getElementById(divId.id+'TTTT');\r\n");
            out.write("\r\n");
            out.write("href_div.onmouseover=null;\r\n");
            out.write("\r\n");
            out.write("href_div.onmouseout=null;\t\r\n");
            out.write("\r\n");
            out.write("img_div.className='del_drag_text';\r\n");
            out.write("\r\n");
            out.write("href_div.className='del_drag_text';\r\n");
            out.write("\r\n");
            out.write("t++;\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("document.onkeydown=mm;\r\n");
            out.write("document.onkeyup=mm1;\r\n");
            out.write("\r\n");
            out.write("var divv_img=0;\r\n");
            out.write("function mm(evt)\r\n");
            out.write("{\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("if(evt.keyCode==46)\r\n");
            out.write("\t\t\t{\r\n");
            out.write("\tdivv_img=1;\r\n");
            out.write("\tdel();\r\n");
            out.write("\t\t\t}else if(evt.keyCode==17){\r\n");
            out.write("\t\t\t\tdivv_img=2;\r\n");
            out.write("\t\t\t}else if(evt.keyCode==16){\r\n");
            out.write("\t\t\t\tclose_run();\r\n");
            out.write("\t\t\t\tfield_o=1;\r\n");
            out.write("\t\t\t}\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("if(event.keyCode==46){\r\n");
            out.write("\tdivv_img=1;\r\n");
            out.write("\tdel();\r\n");
            out.write("\t\t\t}else if(event.keyCode==17){\r\n");
            out.write("\t\t\t\tdivv_img=2;\r\n");
            out.write("\t\t\t}else if(event.keyCode==16){\r\n");
            out.write("\t\t\t\tclose_run();\r\n");
            out.write("\t\t\t\tfield_o=1;\r\n");
            out.write("\t\t\t}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function mm1(evt)\r\n");
            out.write("{\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("if(evt.keyCode==17)\r\n");
            out.write("\t\t\t{\r\n");
            out.write("\tdivv_img=0;\r\n");
            out.write("\t\t\t}else if(evt.keyCode==16)\r\n");
            out.write("\t\t\t{\r\n");
            out.write("\tfield_o=2;\r\n");
            out.write("\t\t\t}\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("if(event.keyCode==17){\r\n");
            out.write("\tdivv_img=0;\r\n");
            out.write("\t\t\t}else if(event.keyCode==16){\r\n");
            out.write("\tfield_o=2;\r\n");
            out.write("\t\t\t}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function del(){\r\n");
            out.write("if(divv_img==1)\r\n");
            out.write("{\r\n");
            out.write("var xmlhttp_img;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp_img=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp_img=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp_img) {\r\n");
            out.write("\t\t\txmlhttp_img.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp_img.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\t\tif(xmlhttp_img.status==200) {\r\n");
            out.write("\r\n");
            out.write("divv_img=0;\r\n");
            out.write("if(group_id!=''){\r\n");
            out.write("group_id=group_id.substring(0,group_id.length-1);\r\n");
            out.write("args = group_id.split(\",\");\r\n");
            out.write(" for(var i = 0; i < args.length; i ++){\r\n");
            out.write("var sTr=document.getElementById(args[i]);\r\n");
            out.write("\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write(" }\t\t\t\t\t\r\n");
            out.write("group_id='';\r\n");
            out.write("\r\n");
            out.write("alert(\"");
            out.print(demo.getLang("erp", "删除成功"));
            out.write("\");\r\n");
            out.write("}else{\r\n");
            out.write("\twindow.location.reload();\r\n");
            out.write("\t//alert(\"");
            out.print(demo.getLang("erp", "删除成功"));
            out.write("\");\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp_img.status + '=' + xmlhttp_img.statusText);\t\t\t\t\t\t\t}\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("xmlhttp_img.open(\"POST\", \"security/workspace/field_delete.jsp\", true);\r\n");
            out.write("xmlhttp_img.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n");
            out.write("xmlhttp_img.send('id='+group_id+'&div='+divpara);\t\t\t\t\r\n");
            out.write("} \r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function close_run(){\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var sels1 = document.getElementsByTagName('embed'); \r\n");
            out.write("    for (var i = 0; i < sels1.length; i++) {\r\n");
            out.write("              \tsels1[i].parentNode.style.visibility = \"visible\";\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("var view=document.getElementById(\"module_1\");\r\n");
            out.write("var ok=document.getElementById(\"ok\");\r\n");
            out.write("var field_del11=document.getElementById(\"field_del11\");\r\n");
            out.write("var module_2=document.getElementById(\"module_2\");\r\n");
            out.write("var module_3=document.getElementById(\"module_3\");\r\n");
            out.write("var module_4=document.getElementById(\"module_4\");\r\n");
            out.write("var module_5=document.getElementById(\"module_5\");\r\n");
            out.write("var module_6=document.getElementById(\"module_6\");\r\n");
            out.write("var module_7=document.getElementById(\"module_7\");\r\n");
            out.write("var module_8=document.getElementById(\"module_8\");\r\n");
            out.write("var module_9=document.getElementById(\"module_9\");\r\n");
            out.write("var module_10=document.getElementById(\"module_10\");\r\n");
            out.write("var module_11=document.getElementById(\"module_11\");\r\n");
            out.write("\r\n");
            out.write("if(view!=null) view.style.display='none';\r\n");
            out.write("if(module_2!=null) module_2.style.display='none';\r\n");
            out.write("if(module_3!=null) module_3.style.display='none';\r\n");
            out.write("if(module_4!=null) module_4.style.display='none';\r\n");
            out.write("if(module_5!=null) module_5.style.display='none';\r\n");
            out.write("if(module_6!=null) module_6.style.display='none';\r\n");
            out.write("if(module_7!=null) module_7.style.display='none';\r\n");
            out.write("if(module_8!=null) module_8.style.display='none';\r\n");
            out.write("if(module_9!=null) module_9.style.display='none';\r\n");
            out.write("if(module_10!=null) module_10.style.display='none';\r\n");
            out.write("if(ok!=null) ok.style.display='none';\r\n");
            out.write("\r\n");
            out.write("if(divId!=null&&divv_img!=2){\r\n");
            out.write("group_id=group_id.substring(0,group_id.length-1);\r\n");
            out.write("args = group_id.split(\",\");\r\n");
            out.write(" for(var i = 0; i < args.length; i ++){\r\n");
            out.write("div_img_id=args[i];\r\n");
            out.write("var img_div_id=document.getElementById(div_img_id+'TTT');\r\n");
            out.write("if(img_div_id!=null){\r\n");
            out.write("img_div_id.className=null;\r\n");
            out.write("}\r\n");
            out.write("var href_div_id=document.getElementById(div_img_id+'TTTT');\r\n");
            out.write("\r\n");
            out.write("if(href_div_id!=null){\r\n");
            out.write("\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text2';\r\n");
            out.write("\r\n");
            out.write("}else if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("href_div_id.onmouseover=function (){\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text1';\r\n");
            out.write("\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("href_div_id.onmouseout=function (){\r\n");
            out.write("\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text2';\r\n");
            out.write("\r\n");
            out.write("}else if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("group_id='';\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var num=1;\r\n");
            out.write("var ie=document.all; \r\n");
            out.write("var nn6=document.getElementById&&!document.all; \r\n");
            out.write("var nn8=document.getElementById&&!document.all; \r\n");
            out.write("var isdrag=false; \r\n");
            out.write("var y,x;\r\n");
            out.write("var y1,x1; \r\n");
            out.write("var oDragObj;\r\n");
            out.write("var divpara='';\r\n");
            out.write("\r\n");
            out.write("function mouse_div(){\r\n");
            out.write(" num=2;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function moveMouse(e) { \r\n");
            out.write(" if (isdrag) { \r\n");
            out.write(" oDragObj.style.top  =  (nn6 ? nTY + e.clientY - y : nTY + event.clientY - y)+\"px\"; \r\n");
            out.write(" oDragObj.style.left  =  (nn6 ? nTX + e.clientX - x : nTX + event.clientX - x)+\"px\"; \r\n");
            out.write(" return false; \r\n");
            out.write(" }else {\r\n");
            out.write("if(field_o==1&&field_p==1){\r\n");
            out.write("if(navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("var div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.display='block';\r\n");
            out.write("\r\n");
            out.write("if(e.clientX>field_x&&e.clientY<field_y)\r\n");
            out.write("\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.position=\"absolute\";\r\n");
            out.write("\r\n");
            out.write("div.style.top=e.clientY+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.left=field_x+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.width=e.clientX-field_x;\r\n");
            out.write("\r\n");
            out.write("div.style.height=field_y-e.clientY;\r\n");
            out.write("divpara=field_x+','+e.clientX+','+e.clientY+','+field_y;\r\n");
            out.write("group_id='';\r\n");
            out.write("}else if(e.clientX>field_x&&e.clientY>field_y)\r\n");
            out.write("\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.position=\"absolute\";\r\n");
            out.write("\r\n");
            out.write("div.style.top=field_y+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.left=field_x+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.width=e.clientX-field_x;\r\n");
            out.write("\r\n");
            out.write("div.style.height=e.clientY-field_y;\r\n");
            out.write("divpara=field_x+','+e.clientX+','+field_y+','+e.clientY;\r\n");
            out.write("group_id='';\r\n");
            out.write("}else if(e.clientX<field_x&&e.clientY>field_y)\r\n");
            out.write("\r\n");
            out.write("{\r\n");
            out.write("div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.position=\"absolute\";\r\n");
            out.write("\r\n");
            out.write("div.style.top=field_y+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.left=e.clientX+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.width=field_x-e.clientX;\r\n");
            out.write("\r\n");
            out.write("div.style.height=e.clientY-field_y;\r\n");
            out.write("divpara=e.clientX+','+field_x+','+field_y+','+e.clientY;\r\n");
            out.write("group_id='';\r\n");
            out.write("}else if(e.clientX<field_x&&e.clientY<field_y)\r\n");
            out.write("\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.position=\"absolute\";\r\n");
            out.write("\r\n");
            out.write("div.style.top=e.clientY+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.left=e.clientX+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.width=field_x-e.clientX;\r\n");
            out.write("\r\n");
            out.write("div.style.height=field_y-e.clientY;\r\n");
            out.write("divpara=e.clientX+','+field_x+','+e.clientY+','+field_y;\r\n");
            out.write("group_id='';\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("}else if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("var div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.display='block';\r\n");
            out.write("\r\n");
            out.write("if(event.clientX>field_x&&event.clientY<field_y)\r\n");
            out.write("\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.position=\"absolute\";\r\n");
            out.write("\r\n");
            out.write("div.style.top=event.clientY+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.left=field_x+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.width=event.clientX-field_x;\r\n");
            out.write("\r\n");
            out.write("div.style.height=field_y-event.clientY;\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("new_top=event.clientY+'px';\r\n");
            out.write("new_left=field_x+'px';\r\n");
            out.write("new_height=event.clientX-field_x;\r\n");
            out.write("new_width=field_y-event.clientY;\r\n");
            out.write("\r\n");
            out.write("divpara=field_x+','+event.clientX+','+event.clientY+','+field_y;\r\n");
            out.write("group_id='';\r\n");
            out.write("\r\n");
            out.write("}else if(event.clientX>field_x&&event.clientY>field_y)\r\n");
            out.write("\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.position=\"absolute\";\r\n");
            out.write("\r\n");
            out.write("div.style.top=field_y+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.left=field_x+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.width=event.clientX-field_x;\r\n");
            out.write("\r\n");
            out.write("div.style.height=event.clientY-field_y;\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("new_top=field_y+'px';\r\n");
            out.write("new_left=field_x+'px';\r\n");
            out.write("new_height=event.clientX-field_x;\r\n");
            out.write("new_width=event.clientY-field_y;\r\n");
            out.write("\r\n");
            out.write("divpara=field_x+','+event.clientX+','+field_y+','+event.clientY;\r\n");
            out.write("group_id='';\r\n");
            out.write("}else if(event.clientX<field_x&&event.clientY>field_y)\r\n");
            out.write("\r\n");
            out.write("{\r\n");
            out.write("div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.position=\"absolute\";\r\n");
            out.write("\r\n");
            out.write("div.style.top=field_y+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.left=event.clientX+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.width=field_x-event.clientX;\r\n");
            out.write("\r\n");
            out.write("div.style.height=event.clientY-field_y;\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("new_top=field_y+'px';\r\n");
            out.write("new_left=event.clientX+'px';\r\n");
            out.write("new_height=field_x-event.clientX;\r\n");
            out.write("new_width=event.clientY-field_y;\r\n");
            out.write("divpara=event.clientX+','+field_x+','+field_y+','+event.clientY;\r\n");
            out.write("group_id='';\r\n");
            out.write("\r\n");
            out.write("}else if(event.clientX<field_x&&event.clientY<field_y)\r\n");
            out.write("\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("div=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div.style.position=\"absolute\";\r\n");
            out.write("\r\n");
            out.write("div.style.top=event.clientY+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.left=event.clientX+'px';\r\n");
            out.write("\r\n");
            out.write("div.style.width=field_x-event.clientX;\r\n");
            out.write("\r\n");
            out.write("div.style.height=field_y-event.clientY;\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("new_top=event.clientY+'px';\r\n");
            out.write("new_left=event.clientX+'px';\r\n");
            out.write("new_height=field_x-event.clientX;\r\n");
            out.write("new_width=field_y-event.clientY;\r\n");
            out.write("divpara=event.clientX+','+field_x+','+event.clientY+','+field_y;\r\n");
            out.write("group_id='';\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write(" }\r\n");
            out.write("}\r\n");
            out.write("} \r\n");
            out.write("var img_id;\r\n");
            out.write("function initDrag(e) {\r\n");
            out.write("if(field_o==1){\r\n");
            out.write("\r\n");
            out.write(" if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("field_p=1;\r\n");
            out.write("field_x=e.clientX;\r\n");
            out.write("\r\n");
            out.write("field_y=e.clientY;\r\n");
            out.write("isdrag=false;\r\n");
            out.write("document.onmousemove=moveMouse;\r\n");
            out.write("\r\n");
            out.write("}else if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("{\r\n");
            out.write("field_p=1;\r\n");
            out.write("field_x=event.clientX;\r\n");
            out.write("\r\n");
            out.write("field_y=event.clientY;\r\n");
            out.write("isdrag=false;\r\n");
            out.write("document.onmousemove=moveMouse;\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("}else{\r\n");
            out.write(" var oDragHandle = nn6 ? e.target : event.srcElement; \r\n");
            out.write(" var topElement = \"HTML\"; \r\n");
            out.write(" while (oDragHandle.tagName != topElement && oDragHandle.className != \"dragAble\") { \r\n");
            out.write(" oDragHandle = nn6 ? oDragHandle.parentNode : oDragHandle.parentElement; \r\n");
            out.write(" } \r\n");
            out.write(" if (oDragHandle.className==\"dragAble\") { \r\n");
            out.write(" isdrag = true; \r\n");
            out.write(" oDragObj = oDragHandle; \r\n");
            out.write(" img_id=oDragObj.id;\r\n");
            out.write(" nTY = parseInt(oDragObj.style.top+0); \r\n");
            out.write(" y = nn6 ? e.clientY : event.clientY; \r\n");
            out.write(" nTX = parseInt(oDragObj.style.left+0); \r\n");
            out.write(" x = nn6 ? e.clientX : event.clientX; \r\n");
            out.write(" document.onmousemove=moveMouse; \r\n");
            out.write(" return false; \r\n");
            out.write(" }\r\n");
            out.write("} \r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("document.onmousedown=initDrag; \r\n");
            out.write("document.onmouseup=dragimg;\t\r\n");
            out.write("\r\n");
            out.write("function up_div(e){\r\n");
            out.write("var nn8;\r\n");
            out.write("if(num==2){\r\n");
            out.write("y1 = nn8 ? e.clientY : event.clientY; \r\n");
            out.write("x1 = nn8 ? e.clientX : event.clientX;\r\n");
            out.write("var divHeight=document.body.clientHeight;\r\n");
            out.write("var divWidth=document.body.clientWidth;\r\n");
            out.write("var testDiv=document.getElementById(\"testDiv\");\r\n");
            out.write("testDiv.style.height=divHeight-y1;\r\n");
            out.write("testDiv.style.width=divWidth-x1;\r\n");
            out.write("num=1;\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("function dragimg(e){\r\n");
            out.write("\tdiv_tag=0;\r\n");
            out.write("if(field_o==1&&field_p==1){\r\n");
            out.write("field_o=2;\r\n");
            out.write("field_p=2;\r\n");
            out.write("var div55=document.getElementById('field_del11');\r\n");
            out.write("\r\n");
            out.write("div55.style.position=\"absolute\";\r\n");
            out.write("\r\n");
            out.write("div55.style.top=new_top;\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("div55.style.left=new_left;\r\n");
            out.write("\r\n");
            out.write("div55.style.width=new_height;\r\n");
            out.write("\r\n");
            out.write("div55.style.height=new_width;\r\n");
            out.write("\r\n");
            out.write("div55.style.display='block';\r\n");
            out.write("\r\n");
            out.write("isdrag=false;\r\n");
            out.write("//document.onmousemove=moveMouse;\r\n");
            out.write("}else{\r\n");
            out.write("var img_div_id=document.getElementById(img_id+'TTT');\r\n");
            out.write("if(img_div_id!=null){\r\n");
            out.write("img_div_id.className=null;\r\n");
            out.write("}\r\n");
            out.write("var href_div_id=document.getElementById(img_id+'TTTT');\r\n");
            out.write("\r\n");
            out.write("if(href_div_id!=null){\r\n");
            out.write("\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text2';\r\n");
            out.write("}else if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("{\r\n");
            out.write("href_div_id.className='drag_text';\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("href_div_id.onmouseover=function (){\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text1';\r\n");
            out.write("\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("href_div_id.onmouseout=function (){\r\n");
            out.write("\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text2';\r\n");
            out.write("\r\n");
            out.write("}else if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("{\r\n");
            out.write("\r\n");
            out.write("href_div_id.className='drag_text';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("};\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("var nn7=document.getElementById&&!document.all; \r\n");
            out.write("var oDragHandle1 = nn7 ? e.target : event.srcElement; \r\n");
            out.write("isdrag=false;\r\n");
            out.write("\r\n");
            out.write(" var topElement = \"HTML\"; \r\n");
            out.write(" while (oDragHandle1.tagName != topElement && oDragHandle1.className != \"dragAble\") { \r\n");
            out.write(" oDragHandle1 = nn6 ? oDragHandle1.parentNode : oDragHandle1.parentElement; \r\n");
            out.write(" } \r\n");
            out.write("if (oDragHandle1.className==\"dragAble\") {\r\n");
            out.write("var drag_img_top=oDragObj.style.top;\r\n");
            out.write("var drag_img_left=oDragObj.style.left;\r\n");
            out.write("var drag_img_topa=parseInt(drag_img_top);\r\n");
            out.write("var drag_img_leftb=parseInt(drag_img_left);\r\n");
            out.write("var recover=document.getElementById(\"recover\");\r\n");
            out.write("var toop1=parseInt(recover.style.left)+80;\r\n");
            out.write("\r\n");
            out.write("var body_left=parseInt(document.body.clientHeight)-100;\r\n");
            out.write("if(drag_img_topa>body_left&&toop1>drag_img_leftb){\r\n");
            out.write("var xmlhttp_img;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp_img=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp_img=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp_img) {\r\n");
            out.write("\t\t\txmlhttp_img.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp_img.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\t\tif(xmlhttp_img.status==200) {\r\n");
            out.write("var sTr=document.getElementById(img_id);\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("\r\n");
            out.write("alert(\"");
            out.print(demo.getLang("erp", "删除成功"));
            out.write("\")\r\n");
            out.write("}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp_img.status + '=' + xmlhttp_img.statusText);\t\t\t\t\t\t\t}\r\n");
            out.write("}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\txmlhttp_img.open(\"POST\", \"drag_img_del\", true);\r\n");
            out.write("\t\txmlhttp_img.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n");
            out.write("\t\txmlhttp_img.send('id='+img_id);\t\t\t\t\r\n");
            out.write("\t\t} \r\n");
            out.write("}else{\r\n");
            out.write("var xmlhttp_img1;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp_img1=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp_img1=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp_img1) {\r\n");
            out.write("\t\t\txmlhttp_img1.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp_img1.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp_img1.status==200) {\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp_img1.status + '=' + xmlhttp_img1.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\r\n");
            out.write("\t\t\t\t\t\talert(exception);                         \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp_img1.open(\"POST\", \"update_dragImg\", true);\r\n");
            out.write("\t\txmlhttp_img1.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp_img1.send('id='+img_id+'&drag_img_top='+drag_img_top+'&drag_img_left='+drag_img_left);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("</script> \r\n");
            out.write("\r\n");
            out.write("<script language=\"JavaScript\">\r\n");
            out.write("function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.\r\n");
            out.write("{\r\n");
            out.write("   var arVersion = navigator.appVersion.split(\"MSIE\")\r\n");
            out.write("   var version = parseFloat(arVersion[1])\r\n");
            out.write("   if ((version >= 5.5) && (document.body.filters)) \r\n");
            out.write("   {\r\n");
            out.write("      for(var j=0; j<document.images.length; j++)\r\n");
            out.write("      {\r\n");
            out.write("         var img = document.images[j]\r\n");
            out.write("         var imgName = img.src.toUpperCase()\r\n");
            out.write("         if (imgName.substring(imgName.length-3, imgName.length) == \"PNG\")\r\n");
            out.write("         {\r\n");
            out.write("            var imgID = (img.id) ? \"id='\" + img.id + \"' \" : \"\"\r\n");
            out.write("            var imgClass = (img.className) ? \"class='\" + img.className + \"' \" : \"\"\r\n");
            out.write("            var imgTitle = (img.title) ? \"title='\" + img.title + \"' \" : \"title='\" + img.alt + \"' \"\r\n");
            out.write("            var imgStyle = \"display:inline-block;\" + img.style.cssText \r\n");
            out.write("            if (img.align == \"left\") imgStyle = \"float:left;\" + imgStyle\r\n");
            out.write("            if (img.align == \"right\") imgStyle = \"float:right;\" + imgStyle\r\n");
            out.write("            if (img.parentElement.href) imgStyle = \"cursor:hand;\" + imgStyle\r\n");
            out.write("            var strNewHTML = \"<span \" + imgID + imgClass + imgTitle\r\n");
            out.write("            + \" style=\\\"\" + \"width:\" + img.width + \"px; height:\" + img.height + \"px;\" + imgStyle + \";\"\r\n");
            out.write("            + \"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader\"\r\n");
            out.write("            + \"(src=\\'\" + img.src + \"\\', sizingMethod='scale');\\\"></span>\" \r\n");
            out.write("            img.outerHTML = strNewHTML\r\n");
            out.write("            j = j-1\r\n");
            out.write("         }\r\n");
            out.write("      }\r\n");
            out.write("   }    \r\n");
            out.write("}\r\n");
            out.write("window.attachEvent(\"onload\", correctPNG);\r\n");
            out.write("</script>\r\n");
            out.write("<script>\r\n");
            out.write("var url;\r\n");
            out.write("var vheight = window.screen.height-200;\r\n");
            out.write("var vwidth =  window.screen.width-200;\r\n");
            out.write("function openq(file){\r\n");
            out.write("\t//file=encodeURI(file);\r\n");
            out.write("close_run();\r\n");
            out.write("window.open(file,\"\",\"height=\"+vheight+\",width=\"+vwidth+\",top =0,left=0,toolbar=no,location=no,scrollbars=yes,status=no,menubar=no,resizable=yes\");\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("</head>\r\n");
            out.write("<body style=\"\" onload=\"module()&tick()\" onselectstart=\"return false;\" >\r\n");
            out.write("<div>\r\n");
            out.write("<table width=\"100%\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
            out.write(" <tr>\r\n");
            out.write("    <td><div align=\"right\" valign=\"top\"></div></td>\r\n");
            out.write("  </tr>\r\n");
            out.write("</table>\r\n");
            out.write("</div>\r\n");
            out.write("<script>\r\n");
            out.write("var image;\r\n");
            out.write("var mod_name;\r\n");
            out.write("var top_num;\r\n");
            out.write("var div_num;\r\n");
            out.write("var topheight;\r\n");
            out.write("function body_top(num){\r\n");
            out.write("this.top_num=num;\r\n");
            out.write("}\r\n");
            out.write("function div_top(num1){\r\n");
            out.write("\r\n");
            out.write("window.status='powered by nseer erp';\r\n");
            out.write("//this.href='javascript:void(0)';\r\n");
            out.write("//return true;\r\n");
            out.write("\r\n");
            out.write("this.div_num=num1;\r\n");
            out.write("topheight=top_num+div_num;\r\n");
            out.write("}\r\n");
            out.write("function module(){\r\n");
            out.write("\r\n");
            out.write("function killerrors() { \r\n");
            out.write("return true; \r\n");
            out.write("} \r\n");
            out.write("window.onerror = killerrors; \r\n");
            out.write("\r\n");
            out.write("mine();\r\n");
            out.write("var menu=document.getElementById(\"module_1\");\r\n");
            out.write("menu.style.position='absolute';\r\n");
            out.write("var li = menu.getElementsByTagName(\"li\");\r\n");
            out.write("var menu_height=li.length*20;\r\n");
            out.write("menu.style.top=document.body.clientHeight-40-menu_height;\r\n");
            out.write("var run=document.getElementById(\"run\");\r\n");
            out.write("run.style.position='absolute'\r\n");
            out.write("run.style.top=document.body.clientHeight-30;\r\n");
            out.write("run.style.left=0;\r\n");
            out.write("var run_button=document.getElementById(\"run_button\");\r\n");
            out.write("run_button.style.position='absolute'\r\n");
            out.write("run_button.style.top=document.body.clientHeight-20;\r\n");
            out.write("run_button.style.left=3;\r\n");
            out.write("\r\n");
            out.write("var run_bar=document.getElementById(\"run_bar\");\r\n");
            out.write("run_bar.style.position='absolute'\r\n");
            out.write("run_bar.style.top=document.body.clientHeight-30;\r\n");
            out.write("run_bar.style.left=80;\r\n");
            out.write("run_bar.style.height=25;\r\n");
            out.write("run_bar.style.width=document.body.clientWidth-80;\r\n");
            out.write("//run_button.style.zIndex=500; \r\n");
            out.write("view_text_div();\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var module_all=\"\";\r\n");
            out.write("function menu_first(module_name,view_tree_name,gategory){\r\n");
            out.write("\r\n");
            out.write("module_all=\"\";\r\n");
            out.write("module_all=module_all+module_name;\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("if(view_tree_name!=undefined&&gategory!=undefined){\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var module_2=document.getElementById(\"module_2\");\r\n");
            out.write("module_2.innerHTML='';\r\n");
            out.write("var str = xmlhttp.responseText.split(\"\\n\");\r\n");
            out.write("var suggest='<ul>'\r\n");
            out.write("for(i=0; i < str.length - 1; i++) {\r\n");
            out.write(" suggest+= '<li onclick=\"div_top(this.offsetTop);\" onmousemove=\"window.status=\\'powered by nseer erp\\'\" onmouseover=\"window.status=\\'powered by nseer erp\\'\"><a id=\"active\" ' + str[i] + '</a></li>';\r\n");
            out.write("}\r\n");
            out.write("suggest=suggest+'</ul>'\r\n");
            out.write("module_2.innerHTML=suggest;\r\n");
            out.write("for(var i=3;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("\r\n");
            out.write("HideOverSels('module_2');\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);\r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"workSpace_use\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('module_all='+module_all+'&view_tree_name='+view_tree_name+'&gategory='+gategory);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("var module=document.getElementById(\"module_1\");\r\n");
            out.write("module_2.style.position='absolute';\r\n");
            out.write("var li = module_2.getElementsByTagName(\"li\");\r\n");
            out.write("module_2.style.left=parseInt(module.style.left)+parseInt(module.style.width);\r\n");
            out.write("module_2.style.top=parseInt(topheight);\r\n");
            out.write("module_2.style.display=module_2.style.display=='block'?'block':'block';\r\n");
            out.write("if(module_2.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("\tfor(var i=3;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("function menu_2(view_tree_name,gategory,m_name){\r\n");
            out.write("if(module_all.indexOf(\"--\")==-1){\r\n");
            out.write("module_all=module_all+\"--\"+m_name;\r\n");
            out.write("}else{\r\n");
            out.write("var module_length=module_all.indexOf(\"--\");\r\n");
            out.write("module_all=module_all.substring(0,module_length)+\"--\"+m_name;\r\n");
            out.write("}\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("if(view_tree_name!=undefined&&gategory!=undefined){\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var module_3=document.getElementById(\"module_3\");\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("module_3.innerHTML='';\r\n");
            out.write("var str = xmlhttp.responseText.split(\"\\n\");\r\n");
            out.write("var suggest='<ul>';\r\n");
            out.write("for(i=0; i < str.length - 1; i++) {\r\n");
            out.write(" suggest+= '<li onclick=\"div_top(this.offsetTop)\"><a id=\"active\" ' + str[i] + '</a></li>';\r\n");
            out.write("}\r\n");
            out.write("suggest=suggest+'</ul>';\r\n");
            out.write("module_3.innerHTML=suggest;\r\n");
            out.write("for(var i=4;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);                        \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"workSpace_use\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('module_all='+module_all+'&view_tree_name='+view_tree_name+'&gategory='+gategory);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("};\r\n");
            out.write("var module_2=document.getElementById(\"module_2\");\r\n");
            out.write("module_3.style.position='absolute';\r\n");
            out.write("module_3.style.left=parseInt(module_2.style.left)+parseInt(module_2.style.width);\r\n");
            out.write("module_3.style.top=parseInt(topheight);\r\n");
            out.write("module_3.style.display=module_3.style.display=='block'?'block':'block';\r\n");
            out.write("if(module_3.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("for(var i=4;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function menu_3(view_tree_name,gategory,m_name){\r\n");
            out.write("\r\n");
            out.write("if(module_all.indexOf(\"--\")==-1){\r\n");
            out.write("module_all=module_all+\"--\"+m_name;\r\n");
            out.write("}else{\r\n");
            out.write("var module_length=module_all.indexOf(\"--\");\r\n");
            out.write("module_all=module_all.substring(0,module_length)+\"--\"+m_name;\r\n");
            out.write("}\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("if(view_tree_name!=undefined&&gategory!=undefined){\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var module_4=document.getElementById(\"module_4\");\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("module_4.innerHTML='';\r\n");
            out.write("var str = xmlhttp.responseText.split(\"\\n\");\r\n");
            out.write("var suggest='<ul>';\r\n");
            out.write("for(i=0; i < str.length - 1; i++) {\r\n");
            out.write(" suggest+= '<li onclick=\"div_top(this.offsetTop)\"><a id=\"active\" ' + str[i] + '</a></li>';\r\n");
            out.write("}\r\n");
            out.write("suggest=suggest+'</ul>';\r\n");
            out.write("module_4.innerHTML=suggest;\r\n");
            out.write("for(var i=5;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);                        \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"workSpace_use\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('module_all='+module_all+'&view_tree_name='+view_tree_name+'&gategory='+gategory);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var module_3=document.getElementById(\"module_3\");\r\n");
            out.write("module_4.style.position='absolute';\r\n");
            out.write("module_4.style.left=parseInt(module_3.style.left)+parseInt(module_3.style.width);\r\n");
            out.write("module_4.style.top=parseInt(topheight);\r\n");
            out.write("module_4.style.display=module_4.style.display=='block'?'block':'block';\r\n");
            out.write("if(module_4.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("for(var i=5;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function menu_4(view_tree_name,gategory,m_name){//这是第四级层\r\n");
            out.write("if(module_all.indexOf(\"--\")==-1){\r\n");
            out.write("module_all=module_all+\"--\"+m_name;\r\n");
            out.write("}else{\r\n");
            out.write("var module_length=module_all.indexOf(\"--\");\r\n");
            out.write("module_all=module_all.substring(0,module_length)+\"--\"+m_name;\r\n");
            out.write("}\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("if(view_tree_name!=undefined&&gategory!=undefined){\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var module_5=document.getElementById(\"module_5\");\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("module_5.innerHTML='';\r\n");
            out.write("var str = xmlhttp.responseText.split(\"\\n\");\r\n");
            out.write("var suggest='<ul>';\r\n");
            out.write("for(i=0; i < str.length - 1; i++) {\r\n");
            out.write(" suggest+= '<li onclick=\"div_top(this.offsetTop)\"><a id=\"active\" ' + str[i] + '</a></li>';\r\n");
            out.write("}\r\n");
            out.write("suggest=suggest+'</ul>';\r\n");
            out.write("module_5.innerHTML=suggest;\r\n");
            out.write("for(var i=6;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);                        \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"workSpace_use\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('module_all='+module_all+'&view_tree_name='+view_tree_name+'&gategory='+gategory);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var module_4=document.getElementById(\"module_4\");\r\n");
            out.write("module_5.style.position='absolute';\r\n");
            out.write("module_5.style.left=parseInt(module_4.style.left)+parseInt(module_4.style.width);\r\n");
            out.write("module_5.style.top=parseInt(topheight);\r\n");
            out.write("module_5.style.display=module_5.style.display=='block'?'block':'block';\r\n");
            out.write("if(module_5.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("for(var i=6;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function menu_5(view_tree_name,gategory,m_name){//这是第五级层\r\n");
            out.write("if(module_all.indexOf(\"--\")==-1){\r\n");
            out.write("module_all=module_all+\"--\"+m_name;\r\n");
            out.write("}else{\r\n");
            out.write("var module_length=module_all.indexOf(\"--\");\r\n");
            out.write("module_all=module_all.substring(0,module_length)+\"--\"+m_name;\r\n");
            out.write("}\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("if(view_tree_name!=undefined&&gategory!=undefined){\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var module_6=document.getElementById(\"module_6\");\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("module_6.innerHTML='';\r\n");
            out.write("var str = xmlhttp.responseText.split(\"\\n\");\r\n");
            out.write("var suggest='<ul>';\r\n");
            out.write("for(i=0; i < str.length - 1; i++) {\r\n");
            out.write(" suggest+= '<li onclick=\"div_top(this.offsetTop)\"><a id=\"active\" ' + str[i] + '</a></li>';\r\n");
            out.write("}\r\n");
            out.write("suggest=suggest+'</ul>';\r\n");
            out.write("module_6.innerHTML=suggest;\r\n");
            out.write("for(var i=7;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);                        \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"workSpace_use\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('module_all='+module_all+'&view_tree_name='+view_tree_name+'&gategory='+gategory);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var module_5=document.getElementById(\"module_5\");\r\n");
            out.write("module_6.style.position='absolute';\r\n");
            out.write("module_6.style.left=parseInt(module_5.style.left)+parseInt(module_5.style.width);\r\n");
            out.write("module_6.style.top=parseInt(topheight);\r\n");
            out.write("module_6.style.display=module_6.style.display=='block'?'block':'block';\r\n");
            out.write("if(module_6.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("for(var i=7;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function menu_6(view_tree_name,gategory,m_name){\r\n");
            out.write("if(module_all.indexOf(\"--\")==-1){\r\n");
            out.write("module_all=module_all+\"--\"+m_name;\r\n");
            out.write("}else{\r\n");
            out.write("var module_length=module_all.indexOf(\"--\");\r\n");
            out.write("module_all=module_all.substring(0,module_length)+\"--\"+m_name;\r\n");
            out.write("}\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("if(view_tree_name!=undefined&&gategory!=undefined){\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var module_7=document.getElementById(\"module_7\");\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("module_7.innerHTML='';\r\n");
            out.write("var str = xmlhttp.responseText.split(\"\\n\");\r\n");
            out.write("var suggest='<ul>';\r\n");
            out.write("for(i=0; i < str.length - 1; i++) {\r\n");
            out.write(" suggest+= '<li onclick=\"div_top(this.offsetTop)\"><a id=\"active\" ' + str[i] + '</a></li>';\r\n");
            out.write("}\r\n");
            out.write("suggest=suggest+'</ul>';\r\n");
            out.write("module_7.innerHTML=suggest;\r\n");
            out.write("for(var i=8;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);                        \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"workSpace_use\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('module_all='+module_all+'&view_tree_name='+view_tree_name+'&gategory='+gategory);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("var module_6=document.getElementById(\"module_6\");\r\n");
            out.write("module_7.style.position='absolute';\r\n");
            out.write("module_7.style.left=parseInt(module_6.style.left)+parseInt(module_6.style.width);\r\n");
            out.write("module_7.style.top=parseInt(topheight);\r\n");
            out.write("module_7.style.display=module_7.style.display=='block'?'block':'block';\r\n");
            out.write("if(module_7.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("for(var i=8;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function menu_7(view_tree_name,gategory,m_name){\r\n");
            out.write("if(module_all.indexOf(\"--\")==-1){\r\n");
            out.write("module_all=module_all+\"--\"+m_name;\r\n");
            out.write("}else{\r\n");
            out.write("var module_length=module_all.indexOf(\"--\");\r\n");
            out.write("module_all=module_all.substring(0,module_length)+\"--\"+m_name;\r\n");
            out.write("}\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("if(view_tree_name!=undefined&&gategory!=undefined){\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var module_8=document.getElementById(\"module_8\");\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("module_8.innerHTML='';\r\n");
            out.write("var str = xmlhttp.responseText.split(\"\\n\");\r\n");
            out.write("var suggest='<ul>';\r\n");
            out.write("for(i=0; i < str.length - 1; i++) {\r\n");
            out.write(" suggest+= '<li onclick=\"div_top(this.offsetTop)\"><a id=\"active\" ' + str[i] + '</a></li>';\r\n");
            out.write("}\r\n");
            out.write("suggest=suggest+'</ul>';\r\n");
            out.write("module_8.innerHTML=suggest;\r\n");
            out.write("for(var i=9;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);                        \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"workSpace_use\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('module_all='+module_all+'&view_tree_name='+view_tree_name+'&gategory='+gategory);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var module_7=document.getElementById(\"module_7\");\r\n");
            out.write("module_8.style.position='absolute';\r\n");
            out.write("module_8.style.left=parseInt(module_7.style.left)+parseInt(module_7.style.width);\r\n");
            out.write("module_8.style.top=parseInt(topheight);\r\n");
            out.write("module_8.style.display=module_7.style.display=='block'?'block':'block';\r\n");
            out.write("if(module_8.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("for(var i=9;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function menu_8(view_tree_name,gategory,m_name){\r\n");
            out.write("if(module_all.indexOf(\"--\")==-1){\r\n");
            out.write("module_all=module_all+\"--\"+m_name;\r\n");
            out.write("}else{\r\n");
            out.write("var module_length=module_all.indexOf(\"--\");\r\n");
            out.write("module_all=module_all.substring(0,module_length)+\"--\"+m_name;\r\n");
            out.write("}\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("if(view_tree_name!=undefined&&gategory!=undefined){\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var module_9=document.getElementById(\"module_9\");\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("module_9.innerHTML='';\r\n");
            out.write("var str = xmlhttp.responseText.split(\"\\n\");\r\n");
            out.write("var suggest='<ul>';\r\n");
            out.write("for(i=0; i < str.length - 1; i++) {\r\n");
            out.write(" suggest+= '<li onclick=\"div_top(this.offsetTop)\"><a id=\"active\" ' + str[i] + '</a></li>';\r\n");
            out.write("}\r\n");
            out.write("suggest=suggest+'</ul>';\r\n");
            out.write("module_9.innerHTML=suggest;\r\n");
            out.write("for(var i=10;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);                        \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"workSpace_use\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('module_all='+module_all+'&view_tree_name='+view_tree_name+'&gategory='+gategory);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("};\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var module_8=document.getElementById(\"module_8\");\r\n");
            out.write("module_9.style.position='absolute';\r\n");
            out.write("module_9.style.left=parseInt(module_8.style.left)+parseInt(module_8.style.width);\r\n");
            out.write("module_9.style.top=parseInt(topheight);\r\n");
            out.write("module_9.style.display=module_8.style.display=='block'?'block':'block';\r\n");
            out.write("if(module_9.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("for(var i=10;i<11;i++){\r\n");
            out.write("var module_i=document.getElementById('module_'+i);\r\n");
            out.write("if(module_i!=null) module_i.style.display='none';\r\n");
            out.write("\t}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function menu_three(view_tree_name,gategory,mo_name){\r\n");
            out.write("var module_length=module_all.indexOf(\"--\");\r\n");
            out.write("var module_all1=module_all.substring(0,module_length);\r\n");
            out.write("var module_all2=module_all.substring(module_length+2,module_all.length);\r\n");
            out.write("if(module_all2.indexOf(\"--\")!=-1){\r\n");
            out.write("var module_length1=module_all2.indexOf(\"--\");\r\n");
            out.write("module_all2=module_all2.substring(0,module_length1);\r\n");
            out.write("}\r\n");
            out.write("module_all=module_all1+\"--\"+module_all2+\"--\"+mo_name;\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("if(view_tree_name!=undefined&&gategory!=undefined){\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var module_4=document.getElementById(\"module_4\");\r\n");
            out.write("module_4.innerHTML='';\r\n");
            out.write("var str = xmlhttp.responseText.split(\"\\n\");\r\n");
            out.write("var suggest='<ul>'\r\n");
            out.write("for(i=0; i < str.length - 1; i++) {\r\n");
            out.write(" suggest+= '<li><a id=\"active\" ' + str[i] + '</a></li>';\r\n");
            out.write("}\r\n");
            out.write("suggest=suggest+'</ul>'\r\n");
            out.write("module_4.innerHTML=suggest;\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);                        \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"workSpace_useTwo\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('module_all='+module_all+'&view_tree_name='+view_tree_name+'&gategory='+gategory);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("};\r\n");
            out.write("var module_4=document.getElementById(\"module_4\");\r\n");
            out.write("var module_3=document.getElementById(\"module_3\");\r\n");
            out.write("module_4.style.position='absolute';\r\n");
            out.write("module_4.style.left=parseInt(module_3.style.left)+parseInt(module_3.style.width);\r\n");
            out.write("module_4.style.top=parseInt(topheight);\r\n");
            out.write("module_4.style.display=module_4.style.display=='block'?'block':'block';\r\n");
            out.write("if(module_3.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("var module_4=document.getElementById(\"module_4\");\r\n");
            out.write("if(module_4!=null)module_4.style.display='none';\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("function view(){\r\n");
            out.write("var view=document.getElementById(\"module_1\");\r\n");
            out.write("var li = view.getElementsByTagName(\"li\");\r\n");
            out.write("view.style.display=view.style.display=='block'?'none':'block';\r\n");
            out.write("if(view.style.display=='none')\r\n");
            out.write("{\r\n");
            out.write("var ok=document.getElementById(\"ok\");\r\n");
            out.write("var module_2=document.getElementById(\"module_2\");\r\n");
            out.write("var module_3=document.getElementById(\"module_3\");\r\n");
            out.write("var module_4=document.getElementById(\"module_4\");\r\n");
            out.write("if(module_2!=null) module_2.style.display='none';\r\n");
            out.write("if(module_3!=null) module_3.style.display='none';\r\n");
            out.write("if(module_4!=null) module_4.style.display='none';\r\n");
            out.write("if(ok!=null) ok.style.display='none';\r\n");
            out.write("}\r\n");
            out.write("} \r\n");
            out.write("</script>\r\n");
            out.write("<script>\r\n");
            out.write("var link;\r\n");
            out.write("var module_name;\r\n");
            out.write("var category;\r\n");
            out.write("var tree_view_name;\r\n");
            out.write("var etv;\r\n");
            out.write("var id;\r\n");
            out.write("function right_click(module_name1,link1,id,category,tree_view_name){\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("this.category=category;\r\n");
            out.write("this.tree_view_name=tree_view_name;\r\n");
            out.write("this.module_name=module_name1;\r\n");
            out.write("this.link=link1;\r\n");
            out.write("this.id=id;\r\n");
            out.write("var sTr=document.getElementById(\"ok\");\r\n");
            out.write("if(sTr!=null){\r\n");
            out.write("sTr.parentNode.removeChild(sTr);\r\n");
            out.write("}\r\n");
            out.write("var right_menu = document.createElement(\"div\");\r\n");
            out.write("right_menu.style.zIndex=\"550\"; \r\n");
            out.write("right_menu.id='ok';\r\n");
            out.write("right_menu.innerHTML='<a style=\"z-index:550;width:150px;cursor:hand; font-size : 9pt;padding:2px 5px 2px 0.5em;border-left: 10px solid #FF99FF;border-right: 10px solid #FF99FF;background-color: red;color: #ffffff;text-decoration: none;\" href=\"javascript:drag_img_update_del();\">");
            out.print(demo.getLang("erp", "在桌面创建快捷方式"));
            out.write("</a>';\r\n");
            out.write("right_menu.style.position='absolute';\r\n");
            out.write("right_menu.style.left=etv.clientX;\r\n");
            out.write("right_menu.style.top=etv.clientY +document.body.scrollTop;\r\n");
            out.write("var xmlhttp1;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp1=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp1=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp1) {\r\n");
            out.write("\t\t\txmlhttp1.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp1.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp1.status==200) {\r\n");
            out.write("image=xmlhttp1.responseText;\r\n");
            out.write("document.body.appendChild(right_menu);\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp1.status + '=' + xmlhttp1.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\r\n");
            out.write("\t\t\t\t\t\talert(exception);                         \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp1.open(\"POST\", \"workSpace_useImg\", true);\r\n");
            out.write("\t\txmlhttp1.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n");
            out.write("\t\txmlhttp1.send('module_name='+module_name);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("<script>\r\n");
            out.write("function right_click_queue(){\r\n");
            out.write("var right_menu_queue = document.createElement(\"div\");\r\n");
            out.write("right_menu_queue.style.zIndex=\"5555\"; \r\n");
            out.write("right_menu_queue.id='queue';\r\n");
            out.write("right_menu_queue.innerHTML='<a style=\"z-index:5555;width:150px;cursor:hand; font-size : 9pt;padding:2px 5px 2px 0.5em;border-left: 10px solid #FF99FF;border-right: 10px solid #FF99FF;background-color: red;color: #ffffff;text-decoration: none;\" href=\"javascript:queue();\">");
            out.print(demo.getLang("erp", "排列图标"));
            out.write("</a>';\r\n");
            out.write("right_menu_queue.style.position='absolute';\r\n");
            out.write("right_menu_queue.style.left=etv.clientX;\r\n");
            out.write("right_menu_queue.style.top=etv.clientY +document.body.scrollTop;\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("<script>\r\n");
            out.write("var w=100;\r\n");
            out.write("var p=300;\r\n");
            out.write("var r=1;\r\n");
            out.write("var u=100;\r\n");
            out.write("var i=2;\r\n");
            out.write("var left_y=10;\r\n");
            out.write("var left_x=70;\r\n");
            out.write("function drag_img_update_del(){\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var vv = new Array(\"acd.gif\",\"abc.gif\",\"cetset1.gif\",\"design1.gif\",\"compute.gif\",\"nseer_extend.gif\",\"jjjjj1.gif\",\"hr.gif\",\"fgh.gif\",\"design1.gif\",\"acd.gif\");\r\n");
            out.write("var body_height=document.body.clientWidth;\r\n");
            out.write("var task = document.createElement(\"div\");\r\n");
            out.write("if(i==vv.length) i=0;\r\n");
            out.write("u=u+100;\r\n");
            out.write("var num=p-r;\r\n");
            out.write("if (u>body_height){\r\n");
            out.write("u=100;\r\n");
            out.write("left_x=left_x+90;\r\n");
            out.write("left_y=10;\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("var bin=xmlhttp.responseText.split(\",\");\r\n");
            out.write("if(bin[0]==\"1\"){\r\n");
            out.write("var module_innser1;\r\n");
            out.write("if(link==''||link==null){\r\n");
            out.write("module_innser1=\"<div class=\\\"dragAble\\\" id=\"+id+\" onclick=\\\"del_div(this)\\\" style=\\\"position:absolute;display:block;z-index:\"+num+\" ;top:\"+left_x+\"px;left:\"+left_y+\"px;height:100;width=110;\\\"><div align=center id=\"+id+\"TTT ><img src=\"+image+\" width=50 height=50 ondblclick=\\\"javascript:openq('security/workspace/workspace_div.jsp?tree_view_name=\"+tree_view_name+\"&category=\"+category+\"');\\\"></div>\";\r\n");
            out.write("module_innser1+=\"<a id=\"+id+\"TTTT  ");
            if (strhead.indexOf(browercheck.IE) != -1) {
                out.write("class=\\\"drag_text\\\"");
            } else {
                out.write("class=\\\"drag_text2\\\"");
            }
            out.write(" \";\r\n");
            out.write("module_innser1+=\"ondblclick=\\\"javascript:openq('security/workspace/workspace_div.jsp?tree_view_name=\"+tree_view_name+\"&category=\"+category+\"');\\\" \";\r\n");
            out.write("}\r\n");
            out.write("else{\r\n");
            out.write("module_innser1=\"<div class=\\\"dragAble\\\"  id=\"+id+\" onclick=\\\"del_div(this)\\\" style=\\\"position:absolute;display:block;z-index:\"+num+\" ;top:\"+left_x+\"px;left:\"+left_y+\"px;height:100;width=110;\\\"><div align=center id=\"+id+\"TTT ><img src=\"+image+\" width=50 height=50 ondblclick=\\\"javascript:openq('\"+link+\"');\\\"></div>\";\r\n");
            out.write("module_innser1+=\"<a id=\"+id+\"TTTT  ");
            if (strhead.indexOf(browercheck.IE) != -1) {
                out.write("class=\\\"drag_text\\\"");
            } else {
                out.write("class=\\\"drag_text2\\\"");
            }
            out.write(" \";\r\n");
            out.write("module_innser1+=\"ondblclick=\\\"javascript:openq('\"+link+\"');\\\" \";\r\n");
            out.write("}\r\n");
            out.write("module_innser1+=\"onmouseover=\\\"this.className='drag_text1'\\\" \"; module_innser1+=\"onmouseout=\\\"this.className='");
            if (strhead.indexOf(browercheck.IE) != -1) {
                out.write("drag_text");
            } else {
                out.write("drag_text2");
            }
            out.write("'\\\">\"+bin[1]+\"</a></div>\";\r\n");
            out.write("\r\n");
            out.write("task.innerHTML=module_innser1;\r\n");
            out.write("left_y=left_y+100;\r\n");
            out.write("}else{\r\n");
            out.write("alert(\"");
            out.print(demo.getLang("erp", "快捷方式已存在"));
            out.write("\")\r\n");
            out.write("}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);                        \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("if(vv[i]==undefined) vv[i]=\"design1.gif\";\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"drag_img\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n");
            out.write("xmlhttp.send('id='+id+'&link='+link+'&drag_text='+module_name+'&drag_img_top='+left_x+'&drag_img_left='+left_y+'&drag_img_name='+image+'&tree_view_name='+tree_view_name+'&category='+category);\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("}else{\r\n");
            out.write("var xmlhttp;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttp) {\r\n");
            out.write("\t\t\txmlhttp.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttp.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttp.status==200) {\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("var bin=xmlhttp.responseText.split(\",\");\r\n");
            out.write("if(bin[0]==\"1\"){\r\n");
            out.write("var module_innser;\r\n");
            out.write("if(link==''||link==null){\r\n");
            out.write("module_innser=\"<div class=\\\"dragAble\\\" id=\"+id+\" onclick=\\\"del_div(this)\\\" style=\\\"position:absolute;display:block;z-index:\"+num+\" ;top:\"+left_x+\"px;left:\"+left_y+\"px;height:100;width=110;\\\"><div align=center id=\"+id+\"TTT ><img src=\"+image+\"  width=50 height=50 ondblclick=\\\"javascript:openq('security/workspace/workspace_div.jsp?tree_view_name=\"+tree_view_name+\"&category=\"+category+\"');\\\"></div>\";\r\n");
            out.write("//alert(''+image);\r\n");
            out.write("module_innser+=\"<a id=\"+id+\"TTTT  ");
            if (strhead.indexOf(browercheck.IE) != -1) {
                out.write("class=\\\"drag_text\\\"");
            } else {
                out.write("class=\\\"drag_text2\\\"");
            }
            out.write(" \";\r\n");
            out.write("module_innser+=\"ondblclick=\\\"javascript:openq('security/workspace/workspace_div.jsp?tree_view_name=\"+tree_view_name+\"&category=\"+category+\"');\\\" \";\r\n");
            out.write("}\r\n");
            out.write("else{\r\n");
            out.write("module_innser=\"<div class=\\\"dragAble\\\" id=\"+id+\" onclick=\\\"del_div(this)\\\" style=\\\"position:absolute;display:block;z-index:\"+num+\" ;top:\"+left_x+\"px;left:\"+left_y+\"px;height:100;width=110;\\\"><div align=center id=\"+id+\"TTT ><img src=\"+image+\"  width=50 height=50 ondblclick=\\\"javascript:openq('\"+link+\"');\\\"></div>\";\r\n");
            out.write("//alert(''+image);\r\n");
            out.write("module_innser+=\"<a id=\"+id+\"TTTT  ");
            if (strhead.indexOf(browercheck.IE) != -1) {
                out.write("class=\\\"drag_text\\\"");
            } else {
                out.write("class=\\\"drag_text2\\\"");
            }
            out.write(" \";\r\n");
            out.write("module_innser+=\"ondblclick=\\\"javascript:openq('\"+link+\"');\\\" \";\r\n");
            out.write("}\r\n");
            out.write("module_innser+=\"onmouseover=\\\"this.className='drag_text1'\\\" \"; module_innser+=\"onmouseout=\\\"this.className='");
            if (strhead.indexOf(browercheck.IE) != -1) {
                out.write("drag_text");
            } else {
                out.write("drag_text2");
            }
            out.write("'\\\">\"+bin[1]+\"</a></div>\";\r\n");
            out.write("task.innerHTML=module_innser;\r\n");
            out.write("//left_x=left_x;\r\n");
            out.write("left_y=left_y+100;\r\n");
            out.write("}else{\r\n");
            out.write("alert(\"");
            out.print(demo.getLang("erp", "快捷方式已存在"));
            out.write("\")\r\n");
            out.write("}\r\n");
            out.write("}else {\r\n");
            out.write("alert( xmlhttp.status + '=' + xmlhttp.statusText);\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\t\t\t\t\t\t\t\r\n");
            out.write("\t\t\t\t\t\t\t alert(exception);\r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttp.open(\"POST\", \"drag_img\", true);\r\n");
            out.write("\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\txmlhttp.send('id='+id+'&link='+link+'&drag_text='+module_name+'&drag_img_top='+left_x+'&drag_img_left='+left_y+'&drag_img_name='+image+'&tree_view_name='+tree_view_name+'&category='+category);\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("};\r\n");
            out.write("}\r\n");
            out.write("document.body.appendChild(task);\r\n");
            out.write("r++;\r\n");
            out.write("i++;\r\n");
            out.write("w++;\r\n");
            out.write("var ok=document.getElementById(\"ok\");\r\n");
            out.write("if(ok!=null) ok.style.display='none';\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("\r\n");
            out.write("<script language=\"JavaScript\"> \r\n");
            out.write("var ii=0; \r\n");
            out.write("var timer; \r\n");
            out.write("var speed=1000; \r\n");
            out.write("function mine() \r\n");
            out.write("{\r\n");
            out.write("if(ii==1){\r\n");
            out.write("var title_div=document.getElementById('title_div');\r\n");
            out.write("var ff=document.getElementById('ff');\r\n");
            out.write("title_div.style.display='block';\r\n");
            out.write("ff.style.display='block';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("if(ii==10){\r\n");
            out.write("changeOpacity();\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("ii++; \r\n");
            out.write("timer=setTimeout(\"mine()\",speed);\r\n");
            out.write("\r\n");
            out.write("} \r\n");
            out.write("\r\n");
            out.write("</script>\r\n");
            out.write("<script>\r\n");
            out.write("IEcuropa = 100;\r\n");
            out.write("var FFcuropa = 1;\r\n");
            out.write("function changeOpacity(){\r\n");
            out.write(" //alert(makeElement.style.filter);\r\n");
            out.write(" //alert(typeof(makeElement.style.opacity));\r\n");
            out.write("\r\n");
            out.write(" var makeElement=document.getElementById('title_div');\r\n");
            out.write("var text_makeElement=document.getElementById('ff');\r\n");
            out.write(" if(typeof(makeElement.style.filter) == \"undefined\"){\r\n");
            out.write("  //如果firefox浏览器\r\n");
            out.write("  FFcuropa -= 0.1;\r\n");
            out.write("  makeElement.style.opacity = FFcuropa;\r\n");
            out.write("  if(FFcuropa > 0){\r\n");
            out.write("   setTimeout(\"changeOpacity();\",100);\r\n");
            out.write("  }else{\r\n");
            out.write("   FFcuropa = 1;\r\n");
            out.write("   makeElement.parentNode.removeChild(makeElement);//移除需要删除的元素\r\n");
            out.write("      text_makeElement.style.display='none';\r\n");
            out.write("\r\n");
            out.write("  }\r\n");
            out.write(" }else if(typeof(makeElement.style.opacity) == \"undefined\"){\r\n");
            out.write("  //如果是IE浏览器\r\n");
            out.write("  IEcuropa -= 10;\r\n");
            out.write("  makeElement.style.filter=\"Alpha(Opacity=\"+IEcuropa+\")\";\r\n");
            out.write(" \r\n");
            out.write("  if(IEcuropa > 0){\r\n");
            out.write("   setTimeout(\"changeOpacity();\",100);\r\n");
            out.write("  }else{\r\n");
            out.write("   IEcuropa = 100;\r\n");
            out.write("   makeElement.parentNode.removeChild(makeElement);\r\n");
            out.write("   text_makeElement.style.display='none';\r\n");
            out.write("   //移除需要删除的元素\r\n");
            out.write("  }\r\n");
            out.write(" }else{\r\n");
            out.write(" }\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("<script>\r\n");
            out.write("function view_text_div(){\r\n");
            out.write("\r\n");
            out.write("var title_div=document.getElementById(\"title_div\");\r\n");
            out.write("title_div.style.position='absolute'\r\n");
            out.write("title_div.style.top=document.body.clientHeight-120;\r\n");
            out.write("title_div.style.left=60;\r\n");
            out.write("title_div.style.display='none';\r\n");
            out.write("\r\n");
            out.write("var title_div_text=document.getElementById(\"ff\");\r\n");
            out.write("title_div_text.style.position='absolute'\r\n");
            out.write("title_div_text.style.top=document.body.clientHeight-110;\r\n");
            out.write("title_div_text.style.left=73;\r\n");
            out.write("title_div_text.style.display='none';\r\n");
            out.write("title_div_text.style.width='300px';\r\n");
            out.write("title_div_text.style.height='55px';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("</script>\r\n");
            out.write("<script> \r\n");
            out.write("function tick() {\r\n");
            out.write("var hours, minutes, seconds, noon;\r\n");
            out.write("var intHours, intMinutes, intSeconds;\r\n");
            out.write("var now;\r\n");
            out.write("now = new Date();\r\n");
            out.write("intHours = now.getHours();\r\n");
            out.write("intMinutes = now.getMinutes();\r\n");
            out.write("intSeconds = now.getSeconds();\r\n");
            out.write("if (intHours < 12) {\r\n");
            out.write("hours = intHours+\":\";\r\n");
            out.write("noon = \"A.M.\";\r\n");
            out.write("} else {\r\n");
            out.write("intHours = intHours - 12\r\n");
            out.write("hours = intHours + \":\";\r\n");
            out.write("noon = \"P.M.\";\r\n");
            out.write("}\r\n");
            out.write("if (intMinutes < 10) {\r\n");
            out.write("minutes = \"0\"+intMinutes+\":\";\r\n");
            out.write("} else {\r\n");
            out.write("minutes = intMinutes+\":\";\r\n");
            out.write("}\r\n");
            out.write("if (intSeconds < 10) {\r\n");
            out.write("seconds = \"0\"+intSeconds+\" \";\r\n");
            out.write("} else {\r\n");
            out.write("seconds = intSeconds+\" \";\r\n");
            out.write("}\r\n");
            out.write("timeString = hours+minutes+seconds+noon;\r\n");
            out.write("Clock.innerHTML = timeString;\r\n");
            out.write("window.setTimeout(\"tick();\", 100);\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("<script>\r\n");
            out.write(" function closead(){\r\n");
            out.write("\t   var obj_title_div=document.getElementById(\"title_div\");\r\n");
            out.write("\t    var obj=document.getElementById(\"ff\");\r\n");
            out.write("\t  obj.style.display=\"none\";\r\n");
            out.write("\tobj_title_div.style.display=\"none\";\r\n");
            out.write("  }\r\n");
            out.write("  </script>\r\n");
            out.write("<script>\r\n");
            out.write(" function close_field(){\r\n");
            out.write("\tvar obj_field_div=document.getElementById(\"field_del11\");\r\n");
            out.write("\tobj_field_div.style.display=\"none\";\r\n");
            out.write("  }\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("window.onresize=function (){\r\n");
            out.write("module();\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function HideOverSels(objID)\r\n");
            out.write("{\r\n");
            out.write(" sels = document.getElementsByTagName('embed'); \r\n");
            out.write("    for (var i = 0; i < sels.length; i++) \r\n");
            out.write("      if (Obj1OverObj2(document.getElementById(objID), sels[i])){\r\n");
            out.write("         \r\n");
            out.write("\t\t\t\tsels[i].parentNode.style.visibility = \"hidden\";\r\n");
            out.write("\t\t\t\t\r\n");
            out.write("\t\t\t\t}else{\r\n");
            out.write("\t\t\r\n");
            out.write("              \tsels[i].parentNode.style.visibility = \"visible\";\r\n");
            out.write("\r\n");
            out.write("\t\t}         \r\n");
            out.write("}\r\n");
            out.write("function Obj1OverObj2(obj1, obj2)\r\n");
            out.write("{\r\n");
            out.write("  var pos1 = getPosition(obj1) \r\n");
            out.write("  var pos2 = getPosition(obj2) \r\n");
            out.write("  var result = true; \r\n");
            out.write("  var obj1Left = pos1.left - window.document.body.scrollLeft; \r\n");
            out.write("  var obj1Top = pos1.top - window.document.body.scrollTop; \r\n");
            out.write("  var obj1Right = obj1Left + obj1.offsetWidth; \r\n");
            out.write("  var obj1Bottom = obj1Top + obj1.offsetHeight;\r\n");
            out.write("  var obj2Left = pos2.left - window.document.body.scrollLeft; \r\n");
            out.write("  var obj2Top = pos2.top - window.document.body.scrollTop; \r\n");
            out.write("  var obj2Right = obj2Left + obj2.offsetWidth; \r\n");
            out.write("  var obj2Bottom = obj2Top + obj2.offsetHeight;\r\n");
            out.write("  if (obj1Right <= obj2Left || obj1Bottom <= obj2Top || \r\n");
            out.write("      obj1Left >= obj2Right || obj1Top >= obj2Bottom) \r\n");
            out.write("    result = false; \r\n");
            out.write("  return result; \r\n");
            out.write("}\r\n");
            out.write("function getPosition(Obj) \r\n");
            out.write("{\r\n");
            out.write("for (var sumTop=0,sumLeft=0;Obj!=window.document.body;sumTop+=Obj.offsetTop,sumLeft+=Obj.offsetLeft, Obj=Obj.offsetParent);\r\n");
            out.write("return {left:sumLeft,top:sumTop}\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("  </script>\r\n");
            out.write("<style type=\"text/css\">\r\n");
            out.write("#sfContainer1 {\r\n");
            out.write("\tposition: absolute;\r\n");
            out.write("    font: bold 10pt simsun, tahoma;\r\n");
            out.write("    background-color: #808080;\r\n");
            out.write("    height: 13%px;\r\n");
            out.write("    top:6px;\r\n");
            out.write("    padding-left: 10px;\r\n");
            out.write("    background-image : url(images/line7.gif.jpg) ;\r\n");
            out.write("    width:260;\r\n");
            out.write("\tz-index:100001;\r\n");
            out.write("\tcursor:hand;\r\n");
            out.write("}\r\n");
            out.write("#sfFrontText {\r\n");
            out.write("    color: #FFFFFF;\r\n");
            out.write("    position: absolute;\r\n");
            out.write("    padding: 0px;\r\n");
            out.write("    width:260;\r\n");
            out.write("    z-index: 1003;\r\n");
            out.write("}\r\n");
            out.write("#sfBackText {\r\n");
            out.write("    color: #000000;\r\n");
            out.write("    width:260;\r\n");
            out.write("    position: absolute;\r\n");
            out.write("    padding: 2px 0px 0px 3px;\r\n");
            out.write("    z-index: 1002;\r\n");
            out.write("}\r\n");
            out.write("</style>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<link href=\"css/msg/themes/default.css\" rel=\"stylesheet\" type=\"text/css\" ></link>\r\n");
            out.write("<link href=\"css/msg/themes/mac_os_x.css\" rel=\"stylesheet\" type=\"text/css\" ></link>\r\n");
            out.write("<div id=\"testDiv\" style=\"display:block; position: absolute; height: 180px; right: 8px; bottom: 36px; width: 300px; z-index:1000; overflow: hidden;\" class=dialog nseerDef=\"dragAble\" onmousemove=\"entrainment();\" onmouseDown=\"takingDiv();\">\r\n");
            out.write("<DIV class=mac_os_x_minimize id=\"collapse\" onclick=\"min_div()\"></DIV>\r\n");
            out.write("<DIV class=mac_os_x_maximize1 id=\"expand\" onclick=\"max_div()\"></DIV>\r\n");
            out.write("<DIV class=mac_os_x_mxximize id=\"expand\" onclick=\"mxx_div()\"></DIV>\r\n");
            out.write("<DIV class=mac_os_x_close id=window_id_1_close onclick=\"msg_close()\"></DIV>\r\n");
            out.write("<TABLE class=\"top table_window\" id=window_id_1_row1 >\r\n");
            out.write("<TBODY  height=\"100%\">\r\n");
            out.write("<TR>\r\n");
            out.write("<TD class=\"mac_os_x_nw top_draggable\"></TD>\r\n");
            out.write("<TD class=mac_os_x_n>\r\n");
            out.write("<DIV class=\"mac_os_x_title title_window top_draggable\" id=window_id_1_top style=\"text-align:left\">我的任务</DIV></TD>\r\n");
            out.write("<TD class=\"mac_os_x_ne top_draggable\"></TD></TR></TBODY></TABLE>\r\n");
            out.write("<TABLE class=\"mid table_window\" id=window_id_1_row2  height=\"80%\">\r\n");
            out.write("<TBODY><TR>\r\n");
            out.write("<TD class=mac_os_x_w></TD>\r\n");
            out.write("<TD class=mac_os_x_content id=window_id_1_table_content vAlign=top>\r\n");
            out.write("<DIV class=mac_os_x_content id=window_id_1_content style=\"WIDTH: 100%; HEIGHT: 100% ;background:#66CCFF;overflow:auto\">\r\n");
            out.write("<iframe src=\"security/workspace/task.jsp\" width=\"100%\" height=\"100%\" scrolling=\"no\"></iframe>\r\n");
            out.write("</DIV></TD>\r\n");
            out.write("<TD class=mac_os_x_e></TD></TR></TBODY></TABLE>\r\n");
            out.write("<TABLE class=\"bot table_window\" id=window_id_1_row3 width=\"100%\">\r\n");
            out.write("<TBODY>\r\n");
            out.write("<TR style=\"border-top:1px solid #000000\"></TR></TBODY></TABLE>\r\n");
            out.write("</div>\r\n");
            out.write("<script>\r\n");
            out.write("function takingDiv(){\r\n");
            out.write("\t/*if(div_tag==0){\r\n");
            out.write("\t\tvar testDiv=document.getElementById('testDiv');\r\n");
            out.write("\t\tvar a=testDiv.style.right;\r\n");
            out.write("\t\tvar b=testDiv.style.bottom\r\n");
            out.write("\t\ttestDiv.style.right=parseInt(a)+2;\r\n");
            out.write("\t\ttestDiv.style.bottom=parseInt(b)+2;\r\n");
            out.write("\t\tvar testDiv2=document.getElementById('testDiv2');\r\n");
            out.write("\t\tvar c=testDiv2.style.right;\r\n");
            out.write("\t\tvar d=testDiv2.style.bottom\r\n");
            out.write("\t\ttestDiv2.style.right=parseInt(c)-2;\r\n");
            out.write("\t\ttestDiv2.style.bottom=parseInt(d)-2;\r\n");
            out.write("\t}*/\r\n");
            out.write("\tdiv_tag=1;\r\n");
            out.write("}\r\n");
            out.write("function puttingDiv(){\r\n");
            out.write("\t/*if(div_tag==1){\r\n");
            out.write("\tvar testDiv=document.getElementById('testDiv');\r\n");
            out.write("\t\tvar a=testDiv.style.right;\r\n");
            out.write("\t\tvar b=testDiv.style.bottom\r\n");
            out.write("\t\ttestDiv.style.right=parseInt(a)-2;\r\n");
            out.write("\t\ttestDiv.style.bottom=parseInt(b)-2;\r\n");
            out.write("\t\tvar testDiv2=document.getElementById('testDiv2');\r\n");
            out.write("\t\tvar c=testDiv2.style.right;\r\n");
            out.write("\t\tvar d=testDiv2.style.bottom\r\n");
            out.write("\t\ttestDiv2.style.right=parseInt(c)+2;\r\n");
            out.write("\t\ttestDiv2.style.bottom=parseInt(d)+2;\r\n");
            out.write("\t}*/\r\n");
            out.write("\tdiv_tag=0;\r\n");
            out.write("}\r\n");
            out.write("var bx,by;\r\n");
            out.write("function entrainment(){\r\n");
            out.write("if(div_tag==1){\r\n");
            out.write("var testDiv=document.getElementById('testDiv');\r\n");
            out.write("//var testDiv2=document.getElementById('testDiv2');\r\n");
            out.write("var ex = event.clientX; \r\n");
            out.write("var ey = event.clientY;\r\n");
            out.write("\t//if(parseInt( testDiv2.style.right )-ex+bx>=0&&parseInt( testDiv2.style.bottom )-ey+by>=0){\r\n");
            out.write("\t\ttestDiv.style.right = parseInt( testDiv.style.right )-ex+bx; \r\n");
            out.write("\t\ttestDiv.style.bottom = parseInt( testDiv.style.bottom )-ey+by; \r\n");
            out.write("\t\t//testDiv2.style.right = parseInt( testDiv2.style.right )-ex+bx; \r\n");
            out.write("\t\t//testDiv2.style.bottom = parseInt( testDiv2.style.bottom )-ey+by; \r\n");
            out.write("\t//}\r\n");
            out.write("}\r\n");
            out.write("bx = event.clientX; \r\n");
            out.write("by = event.clientY; \r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function msg_close(){\r\n");
            out.write("document.getElementById('testDiv').style.display='none';\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function max_div(){\r\n");
            out.write("document.getElementById('testDiv').style.width='650';\r\n");
            out.write("document.getElementById('testDiv').style.height='400';\r\n");
            out.write("}\r\n");
            out.write("function mxx_div(){\r\n");
            out.write("document.getElementById('testDiv').style.width='300';\r\n");
            out.write("document.getElementById('testDiv').style.height='180';\r\n");
            out.write("}\r\n");
            out.write("function min_div(){\r\n");
            out.write("document.getElementById('testDiv').style.width='300';\r\n");
            out.write("document.getElementById('testDiv').style.height='30';\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("<div id=ff style=\"z-index:100;display:none;\"><font size=\"2\" color=\"#000000\">");
            out.print(demo.getLang("erp", "点击这里出现菜单后，您可直接操作，或点击鼠标右键创建快捷方式，或选择时尚界面操作，或退出系统。"));
            out.write("</font><span style=\"position:absolute;right:0px;bottom:0px\"><img src=\"images/close.jpg\" onClick=\"closead()\"></span></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("  <div id=\"field_del11\" style=\"border:1pt dotted red;display:none;z-index:3000\" onClick=\"close_field()\"></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write(" \r\n");
            out.write("<div id=title_div style=\"display:none\">\r\n");
            out.write("<img src=\"security/workspace/desk.gif\">\r\n");
            out.write("</div>\r\n");
            out.write("\r\n");
            out.write("<div style=\"display:none\" id=\"title_top\"><div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "单击这里开始运行恩信科技ERP软件"));
            out.write("</font></div></div>\r\n");
            out.write("<script>\r\n");
            out.write("function dd(){\r\n");
            out.write("\r\n");
            out.write("document.getElementById('whole').style.cursor='default';\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("</script>\r\n");
            out.write("<div id=\"whole\" style=\"width:100%;height:100%\" onclick=\"close_run()\" onmouseup=\"up_div()\" onmousemove=\"dd()\"></div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"width:200px;position:absolute;left:0px;border-top:1px solid #d4d4d4;\" id=\"module_1\" onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("<ul>\r\n");
            out.write("<!-- dsgasdgasdgas -->\r\n");
            out.write("<li><a style=\"background-image:url(images/main.gif);\" href=\"http://www.nseer.com\" target=\"_blank\">");
            out.print(demo.getLang("erp", "欢迎使用恩信科技开源ERP"));
            out.write("</a></li>\r\n");
            java.util.Date now = new java.util.Date();
            GregorianCalendar now1 = new GregorianCalendar();
            SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
            String current = formatter.format(now);
            int day = now1.get(Calendar.DAY_OF_WEEK);
            String weekday = "";
            if (day == 1) {
                weekday = demo.getLang("erp", "星期日");
            }
            if (day == 2) {
                weekday = demo.getLang("erp", "星期一");
            }
            if (day == 3) {
                weekday = demo.getLang("erp", "星期二");
            }
            if (day == 4) {
                weekday = demo.getLang("erp", "星期三");
            }
            if (day == 5) {
                weekday = demo.getLang("erp", "星期四");
            }
            if (day == 6) {
                weekday = demo.getLang("erp", "星期五");
            }
            if (day == 7) {
                weekday = demo.getLang("erp", "星期六");
            }
            String uname = (String) session.getAttribute("realeditorc");
            String user_ID = (String) session.getAttribute("human_IDD");
            sql = "select * from security_workspace where human_ID='" + human_ID + "' order by id";
            rs = security_db.executeQuery(sql);
            while (rs.next()) {
                if (rs.getString("link").equals("")) {
                    out.write("\r\n");
                    out.write("<!-- 绿色      -->\r\n");
                    out.write("<li onclick=\"div_top(this.offsetTop)\" onclick=\"div_top(this.offsetTop);\" onmousemove=\"window.status='powered by nseer erp'\" onmouseover=\"window.status='powered by nseer erp'\"><a style=\"background-image:url(images/mungg.gif);\"  href=\"javascript:menu_first('");
                    out.print(rs.getString("module_name"));
                    out.write('\'');
                    out.write(',');
                    out.write('\'');
                    out.print(rs.getString("view_tree_name"));
                    out.write('\'');
                    out.write(',');
                    out.write('\'');
                    out.print(rs.getString("CATEGORY"));
                    out.write("');\" oncontextmenu=\"etv=event;right_click('");
                    out.print(rs.getString("module_name"));
                    out.write("','','img");
                    out.print(rs.getString("id"));
                    out.write("','0','");
                    out.print(rs.getString("view_tree_name"));
                    out.write("_view')\"><font style=\"color:#000000\">");
                    out.print(demo.getLang("erp", rs.getString("module_name")));
                    out.write("</font></a></li>\r\n");
                } else {
                    out.write("\r\n");
                    out.write("<li><a href=\"javascript:openq('");
                    out.print(rs.getString("link"));
                    out.write("');\" oncontextmenu=\"right_click('");
                    out.print(rs.getString("module_name"));
                    out.write('\'');
                    out.write(',');
                    out.write('\'');
                    out.print(rs.getString("link"));
                    out.write("','img");
                    out.print(rs.getString("id"));
                    out.write("')\" >");
                    out.print(demo.getLang("erp", rs.getString("module_name")));
                    out.write("</a></li>\r\n");
                }
            }
            out.write("\r\n");
            out.write("<!-- dfasdfasdfasdfasdfasdf -->\r\n");
            out.write("<li onclick=\"div_top(this.offsetTop)\" onclick=\"div_top(this.offsetTop);\" onmousemove=\"window.status='powered by nseer erp'\"><a style=\"background-image:url(images/main.gif);\" href=\"main/index1.jsp\"><font color=\"#000000\">");
            out.print(demo.getLang("erp", "时尚界面"));
            out.write("</font></a></li>\r\n");
            out.write("<li  onclick=\"div_top(this.offsetTop)\" onclick=\"div_top(this.offsetTop);\" onmousemove=\"window.status='powered by nseer erp'\"><a style=\"background-image:url(images/main.gif);\" href=\"home/logout.jsp\"><font color=\"#000000\">");
            out.print(demo.getLang("erp", "退出系统"));
            out.write("</font></a></li>\r\n");
            out.write("</ul>\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_1 onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_2 onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_3 onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_4 onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_5 onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_6 onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_7 onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_8 onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_9 onmouseover=\"body_top(this.offsetTop)\" class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("<div oncontextmenu=\"return false;\" style=\"display:none;width:200px;\" id=module_10 class=\"module\">\r\n");
            out.write("</div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div style=\"display:none\" id=\"title_recover\"><div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "将快捷方式拖至此处删除"));
            out.write("</font></div></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div style=\"display:none\" id=\"queue_recover\"><div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "点击重新排列工作台图标"));
            out.write("</font></div></div>\r\n");
            out.write("\r\n");
            out.write("<div style=\"display:none\" id=\"monitor_recover\"><div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "点击监控系统访问"));
            out.write("</font></div></div>\r\n");
            out.write("\r\n");
            out.write("<div style=\"display:none\" id=\"STOCK_recover\"><div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "点击打开门户网站"));
            out.write("</font></div></div>\r\n");
            out.write("\r\n");
            out.write("<div style=\"display:none\" id=\"search_recover\"><div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "点击开始搜索"));
            out.write("</font></div></div>\r\n");
            out.write("<div style=\"display:none\" id=\"colleague_recover\"><div style=\"background:#FFFFCC;padding: 2px 5px 2px 0.5em\"><font size=\"2\">");
            out.print(demo.getLang("erp", "点击查看我的同事"));
            out.write("</font></div></div>\r\n");
            out.write("\r\n");
            out.write("<div style=\"display:none\" id=\"task_recover\"></div>\r\n");
            out.write("<div style=\"display:none\" id=\"bbs_recover\"></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div id=\"run\" onmouseover=\"title_run()\" onmouseout=\"title_run1()\"><a href=\"#\" onclick=\"view()\"><img src=\"images/start.jpg\" border=\"0\"  ></a></div>\r\n");
            out.write("<div id=\"run_bar\" style=\"background-image:url(images/panel-bg.gif);\"><table width=\"100%\">\r\n");
            out.write("  <tr>\r\n");
            out.write("\t <td>\r\n");
            out.write("\r\n");
            out.write("<script language=\"javascript\"> \r\n");
            out.write("       new_img = new Image(22,22);\r\n");
            out.write("\t   new_img.src = \"images/\";\r\n");
            out.write("function img_change(img_name,img)\r\n");
            out.write("{\r\n");
            out.write("    \r\n");
            out.write("\t document[img_name].src = new_img.src+img;\r\n");
            out.write("\r\n");
            out.write("} \r\n");
            out.write("\t   \r\n");
            out.write("function href_link(obj,path){\r\n");
            out.write("\r\n");
            out.write("obj.href=path;\r\n");
            out.write("obj.target=\"_blank\";\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function open_blank(path){\r\n");
            out.write("\r\n");
            out.write("openq(path);\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("       </script>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div id=\"recover\" style=\"position:absolute;z-index:100;bottom:0px;left:20px;width:26;height:26;\" onmouseover=\"title_recover()\" onmouseout=\"title_recover1()\"><img src=\"images/ee30.gif\" width=22 height=22 onmouseover=\"img_change('c0','ee33.gif')\" onmouseout=\"img_change('c0','ee30.gif')\" onMouseDown=\"img_change('c0','ee32.gif')\" onMouseUp=\"img_change('c0','ee30.gif')\" name=\"c0\"></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div id=\"queue\" style=\"position:absolute;z-index:100;bottom:0px;left:60px;width:26px;height:26px;\" onmouseover=\"queue_recover()\" onmouseout=\"queue_recover1()\"  onClick=\"queue()\"><img src=\"images/hh.gif\" width=22 height=22 onmouseover=\"img_change('c1','hh5.gif')\" onmouseout=\"img_change('c1','hh.gif')\" onMouseDown=\"img_change('c1','hh6.gif')\" onMouseUp=\"img_change('c1','hh.gif')\" name=\"c1\"></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div id=\"monitor\" style=\"position:absolute;z-index:100;bottom:0px;left:100px;width:26;height:26;\" onmouseover=\"monitor_recover()\" onmouseout=\"monitor_recover1()\"><a href=\"javascript:void(0)\"  onclick=\"open_blank('security/monitor/query.jsp')\" onmouseover=\"window.status='powered by nseer erp';this.href='javascript:void(0)'; return true\"><img src=\"images/monitor30.gif\" width=22 height=22 onmouseover=\"img_change('c2','monitor33.gif')\" onmouseout=\"img_change('c2','monitor30.gif')\" onMouseDown=\"img_change('c2','monitor32.gif')\" onMouseUp=\"img_change('c2','monitor30.gif')\" name=\"c2\" border=\"0\"></a></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div id=\"STOCK\" style=\"position:absolute;z-index:100;bottom:0px;left:140px;width:26;height:26;\" onmouseover=\"STOCK_recover()\" onmouseout=\"STOCK_recover1()\"><a href=\"javascript:void(0)\"  onclick=\"href_link(this,'portal/index.jsp')\" onmouseover=\"window.status='powered by nseer erp';this.href='javascript:void(0)'; return true\"><img src=\"images/STOCK30.gif\" width=22 height=22 onmouseover=\"img_change('c3','STOCK33.gif')\" onmouseout=\"img_change('c3','STOCK30.gif')\" onMouseDown=\"img_change('c3','STOCK32.gif')\" onMouseUp=\"img_change('c3','STOCK30.gif')\" name=\"c3\" border=\"0\"></a></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div id=\"bbs\" style=\"position:absolute;z-index:100;bottom:0px;left:180px;width:26;height:26;\" onmouseover=\"bbs_recover()\" onmouseout=\"bbs_recover1()\"><img src=\"images/bbs30.gif\" width=22 height=22 onmouseover=\"img_change('c4','bbs33.gif')\" onmouseout=\"img_change('c4','bbs30.gif')\" onMouseDown=\"img_change('c4','bbs32.gif')\" onMouseUp=\"img_change('c4','bbs30.gif')\" name=\"c4\" border=\"0\"></div>\r\n");
            out.write("\r\n");
            out.write("<div id=\"bbs1\" style=\"position:absolute;z-index:100;bottom:0px;left:180px;width:26;height:26;\" onmouseover=\"bbs_recover()\" onmouseout=\"bbs_recover1()\"><embed src=\"images/bbs.swf\" width=22 height=22 border=\"0\"></div>\r\n");
            out.write("\r\n");
            out.write("<div id=\"search\" style=\"position:absolute;z-index:100;bottom:0px;left:220px;width:26;height:26;\" onmouseover=\"search_recover()\" onmouseout=\"search_recover1()\"><a href=\"javascript:void(0)\"  onclick=\"href_link(this,'oa/personaloffice/search.jsp')\" onmouseover=\"window.status='powered by nseer erp';this.href='javascript:void(0)'; return true\" ><img src=\"images/search30.gif\" width=22 height=22 onmouseover=\"img_change('c5','search33.gif')\" onmouseout=\"img_change('c5','search30.gif')\" onMouseDown=\"img_change('c5','search32.gif')\" onMouseUp=\"img_change('c5','search30.gif')\" name=\"c5\" border=\"0\"></a></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div id=\"colleague\" style=\"position:absolute;z-index:100;bottom:0px;left:260px;width:26;height:26;\" onmouseover=\"colleague_recover()\" onmouseout=\"colleague_recover1()\"><a onclick=\"href_link(this,'oa/personaloffice/colleague.jsp')\" onmouseover=\"window.status='powered by nseer erp';this.href='javascript:void(0)'; return true\"><img src=\"images/colleague30.gif\" width=22 height=22 onmouseover=\"img_change('c6','colleague33.gif')\" onmouseout=\"img_change('c6','colleague30.gif')\" onMouseDown=\"img_change('c6','colleague32.gif')\" onMouseUp=\"img_change('c6','colleague30.gif')\" name=\"c6\" border=\"0\"></a></div>\r\n");
            out.write("\r\n");
            out.write("<div id=\"taskDiv\" style=\"position:absolute;z-index:100;bottom:0px;left:300px;width:26;height:26;\" onmouseover=\"task_recover()\" onmouseout=\"task_recover1()\"><img src=\"images/task30.gif\" width=22 height=22 onmouseover=\"img_change('c7','task33.gif')\" onmouseout=\"img_change('c7','task30.gif')\" name=\"c7\" border=\"0\"></div>\r\n");
            out.write("\r\n");
            out.write("<div id=\"taskDiv1\" style=\"position:absolute;z-index:100;bottom:0px;left:300px;width:26;height:26;\" onmouseover=\"task_recover()\" onmouseout=\"task_recover1()\"><embed src=\"images/task.swf\" width=22 height=22 onClick=\"task_display()\" border=\"0\"></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<td height=\"26\" align=\"right\" valign=\"center\" width=\"100%\"><font color=\"#ffffff\" style=\"font-size: 12\">");
            out.print(current);
            out.write("&nbsp;<font id=\"Clock\" align=\"center\" style=\"font-size: 12; color:#ffffff\"></font>&nbsp;");
            out.print(weekday);
            out.write("&nbsp;&nbsp;<a href=\"hr/file/query.jsp?human_ID=");
            out.print(user_ID);
            out.write("\" target=\"_blank\"><font color=\"#ff0000\" style=\"font-size: 12\">");
            out.print(uname);
            out.write("</font></a>&nbsp;");
            out.print(demo.getLang("erp", "您好!"));
            out.write("</font></td></tr></table></div>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("<div id=\"run_button\" onmouseover=\"title_run()\" onmouseout=\"title_run1()\"><a href=\"#\" onclick=\"view()\"><font size=\"2\" color=\"#000000\"></font></a></div>\r\n");
            out.write("<script>\r\n");
            out.write("function title_run1(){\r\n");
            out.write("var title_top=document.getElementById(\"title_top\");\r\n");
            out.write("title_top.style.display='none';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("function title_run(){\r\n");
            out.write("var title_top=document.getElementById(\"title_top\");\r\n");
            out.write("title_top.style.display='block';\r\n");
            out.write("title_top.style.position='absolute';\r\n");
            out.write("title_top.style.top=document.body.clientHeight-50;\r\n");
            out.write("title_top.style.left=10;\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("<table width=100%>\r\n");
            out.write("\r\n");
            out.write("\r\n");
            String sql1 = "select * from drag_img where human_ID='" + human_ID + "'";
            ResultSet rss = security_db.executeQuery(sql1);
            int yy = 300;
            String img_id = "";
            String groupName = "";
            while (rss.next()) {
                img_id = rss.getString("img_id");
                if (!rss.getString("link").equals("")) {
                    out.write("\r\n");
                    out.write("<div onclick=\"del_div(this)\" ondblclick=\"javascript:openq('");
                    out.print(rss.getString("link"));
                    out.write("');\" class=\"dragAble\" id=");
                    out.print(img_id);
                    out.write("\r\n");
                    out.write("style=\"position:absolute;display:block;z-index:");
                    out.print(yy - 1);
                    out.write(";top:");
                    out.print(rss.getString("drag_img_top"));
                    out.write(";left:");
                    out.print(rss.getString("drag_img_left"));
                    out.write(";height:100;width=110\"><div id=\"");
                    out.print(img_id);
                    out.write("TTT\" align=center><img src=");
                    out.print(rss.getString("drag_img_name"));
                    out.write(" width=50;height=50;></div>\r\n");
                    if (strhead.indexOf(browercheck.IE) != -1) {
                        out.write("\r\n");
                        out.write("<a class=\"drag_text\" id=\"");
                        out.print(img_id);
                        out.write("TTTT\" onmouseover=\"this.className='drag_text1'\" onmouseout=\"this.className='drag_text'\">\r\n");
                    } else {
                        out.write("\r\n");
                        out.write("<a class=\"drag_text2\" id=\"");
                        out.print(img_id);
                        out.write("TTTT\" onmouseover=\"this.className='drag_text1'\" onmouseout=\"this.className='drag_text2'\">\r\n");
                    }
                } else {
                    out.write("\r\n");
                    out.write("<div onclick=\"del_div(this)\" ondblclick=\"javascript:openq('security/workspace/workspace_div.jsp?tree_view_name=");
                    out.print(exchange.toURL(rss.getString("tree_view_name")));
                    out.write("&category=");
                    out.print(exchange.toURL(rss.getString("category")));
                    out.write("');\" class=\"dragAble\" id=");
                    out.print(img_id);
                    out.write("\r\n");
                    out.write("style=\"position:absolute;display:block;z-index:");
                    out.print(yy - 1);
                    out.write(";top:");
                    out.print(rss.getString("drag_img_top"));
                    out.write(";left:");
                    out.print(rss.getString("drag_img_left"));
                    out.write(";height:100;width=110\"><div align=center id=\"");
                    out.print(img_id);
                    out.write("TTT\"><img src=");
                    out.print(rss.getString("drag_img_name"));
                    out.write(" width=50;height=50; ></div>\r\n");
                    if (strhead.indexOf(browercheck.IE) != -1) {
                        out.write("\r\n");
                        out.write("<a class=\"drag_text\" id=\"");
                        out.print(img_id);
                        out.write("TTTT\" onmouseover=\"this.className='drag_text1'\" onmouseout=\"this.className='drag_text'\">\r\n");
                    } else {
                        out.write("\r\n");
                        out.write("<a class=\"drag_text2\" id=\"");
                        out.print(img_id);
                        out.write("TTTT\" onmouseover=\"this.className='drag_text1'\" onmouseout=\"this.className='drag_text2'\">\r\n");
                    }
                }
                if (rss.getString("drag_text").indexOf("--") == -1) {
                    out.write('\r');
                    out.write('\n');
                    out.print(demo.getLang("erp", rss.getString("drag_text")));
                    out.write('\r');
                    out.write('\n');
                } else {
                    groupName = "erp";
                    out.write('\r');
                    out.write('\n');
                    out.print(mdemo.getLang(groupName, rss.getString("drag_text")));
                    out.write('\r');
                    out.write('\n');
                }
                out.write("\r\n");
                out.write("</a></div></div>\r\n");
                out.write("</table>\r\n");
                yy--;
            }
            security_db.close();
            out.write("\r\n");
            out.write("<script>monitor\r\n");
            out.write("\r\n");
            out.write("function title_recover1(){\r\n");
            out.write("var title_top=document.getElementById(\"title_recover\");\r\n");
            out.write("title_top.style.display='none';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("function title_recover(){\r\n");
            out.write("var title_top=document.getElementById(\"title_recover\");\r\n");
            out.write("title_top.style.display='block';\r\n");
            out.write("title_top.style.position='absolute';\r\n");
            out.write("title_top.style.bottom=30;\r\n");
            out.write("title_top.style.left=30;\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function queue_recover1(){\r\n");
            out.write("var queue_top=document.getElementById(\"queue_recover\");\r\n");
            out.write("queue_top.style.display='none';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("function queue_recover(){\r\n");
            out.write("var queue_top=document.getElementById(\"queue_recover\");\r\n");
            out.write("queue_top.style.display='block';\r\n");
            out.write("queue_top.style.position='absolute';\r\n");
            out.write("queue_top.style.bottom=30;\r\n");
            out.write("queue_top.style.left=110;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function monitor_recover1(){\r\n");
            out.write("var monitor_top=document.getElementById(\"monitor_recover\");\r\n");
            out.write("monitor_top.style.display='none';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("function monitor_recover(){\r\n");
            out.write("var monitor_top=document.getElementById(\"monitor_recover\");\r\n");
            out.write("monitor_top.style.display='block';\r\n");
            out.write("monitor_top.style.position='absolute';\r\n");
            out.write("monitor_top.style.bottom=30;\r\n");
            out.write("monitor_top.style.left=150;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function STOCK_recover1(){\r\n");
            out.write("var STOCK_top=document.getElementById(\"STOCK_recover\");\r\n");
            out.write("STOCK_top.style.display='none';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("function STOCK_recover(){\r\n");
            out.write("var STOCK_top=document.getElementById(\"STOCK_recover\");\r\n");
            out.write("STOCK_top.style.display='block';\r\n");
            out.write("STOCK_top.style.position='absolute';\r\n");
            out.write("STOCK_top.style.bottom=30;\r\n");
            out.write("STOCK_top.style.left=190;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function bbs_recover1(){\r\n");
            out.write("var bbs_top=document.getElementById(\"bbs_recover\");\r\n");
            out.write("bbs_top.style.display='none';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("function bbs_recover(){\r\n");
            out.write("var bbs_top=document.getElementById(\"bbs_recover\");\r\n");
            out.write("bbs_top.style.display='block';\r\n");
            out.write("bbs_top.style.position='absolute';\r\n");
            out.write("bbs_top.style.bottom=30;\r\n");
            out.write("bbs_top.style.left=230;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("\r\n");
            out.write("function search_recover1(){\r\n");
            out.write("var search_top=document.getElementById(\"search_recover\");\r\n");
            out.write("search_top.style.display='none';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("function search_recover(){\r\n");
            out.write("\r\n");
            out.write("var search_top=document.getElementById(\"search_recover\");\r\n");
            out.write("search_top.style.display='block';\r\n");
            out.write("search_top.style.position='absolute';\r\n");
            out.write("search_top.style.bottom=30;\r\n");
            out.write("search_top.style.left=260;\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function colleague_recover1(){\r\n");
            out.write("var colleague_top=document.getElementById(\"colleague_recover\");\r\n");
            out.write("colleague_top.style.display='none';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("function colleague_recover(){\r\n");
            out.write("var colleague_top=document.getElementById(\"colleague_recover\");\r\n");
            out.write("colleague_top.style.display='block';\r\n");
            out.write("colleague_top.style.position='absolute';\r\n");
            out.write("colleague_top.style.bottom=30;\r\n");
            out.write("colleague_top.style.left=300;\r\n");
            out.write("}\r\n");
            out.write("\r\n");
            out.write("function task_recover1(){\r\n");
            out.write("var task_top=document.getElementById(\"task_recover\");\r\n");
            out.write("task_top.style.display='none';\r\n");
            out.write("\r\n");
            out.write("}\r\n");
            out.write("function task_recover(){\r\n");
            out.write("var task_top=document.getElementById(\"task_recover\");\r\n");
            out.write("task_top.style.display='block';\r\n");
            out.write("task_top.style.position='absolute';\r\n");
            out.write("task_top.style.bottom=30;\r\n");
            out.write("task_top.style.left=340;\r\n");
            out.write("}\r\n");
            out.write("</script>\r\n");
            out.write("<script>\r\n");
            out.write("function queue(){\r\n");
            out.write("var xmlhttpgg;\r\n");
            out.write("if (navigator.userAgent.indexOf(\"Firefox\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttpgg=new XMLHttpRequest();\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\telse if (navigator.userAgent.indexOf(\"MSIE\")>0)\r\n");
            out.write("\t\t{\r\n");
            out.write("\t\txmlhttpgg=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
            out.write("\t\t}\r\n");
            out.write("\t\tif(xmlhttpgg) {\r\n");
            out.write("\t\t\txmlhttpgg.onreadystatechange = function() {\r\n");
            out.write("\t\t\tif (xmlhttpgg.readyState==4)\r\n");
            out.write("\t\t\t\t{\r\n");
            out.write("\t\t\t\ttry {\r\n");
            out.write("\t\t\t\t\tif(xmlhttpgg.status==200) {\r\n");
            out.write("window.location.reload();\r\n");
            out.write("}\r\n");
            out.write("\t\t\t\t\t} catch(exception) {\r\n");
            out.write("\t\t\t\t\t\talert(exception);                         \r\n");
            out.write("\t\t\t\t\t}\r\n");
            out.write("\t\t\t\t}\r\n");
            out.write("\t\t\t};\r\n");
            out.write("\t\txmlhttpgg.open(\"POST\", \"security/workspace/queue.jsp\", true);\r\n");
            out.write("\t\txmlhttpgg.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n");
            out.write("\t\txmlhttpgg.send(null);\t\t\t\t\r\n");
            out.write("\t\t} else {\t        \r\n");
            out.write("\t\t\t  alert('Can not create XMLHttpRequest object, please check your web browser.');\r\n");
            out.write("}\r\n");
            out.write("}\r\n");
            out.write("function close_task(){\r\n");
            out.write("\t  document.getElementById(\"testDiv\").style.display='none';\r\n");
            out.write("  }\r\n");
            out.write("</script>\r\n");
            out.write("<div style=\"display:none\"><iframe src=\"main/refresh.jsp\" width=\"100%\" height=\"100%\" scrolling=\"no\"></iframe></div>\r\n");
            out.write("</body>\r\n");
            out.write("</html>");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}